Welcome Guest, Not a member yet? Register   Sign In
NuSoap Error
#1

[eluser]Sathishkumar[/eluser]
Hi,

I'm new to SOAP webservice, May i know what is the problem in my below code ...

Code:
<?php
class MemberWSVC extends Controller {
    function __construct() {
        parent::Controller();
        
        require('/var/www/code/application/libraries/nusoap/nusoap.php');
        
        $this->nusoap_server = new soap_server();
        $this->nusoap_server->register('hello');
    }
    
   function hello($name)
{
return 'Hello, ' . $name;
}
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$this->nusoap_server->service($HTTP_RAW_POST_DATA);

}
?>

Browser shows : Server error
The website encountered an error while retrieving http://localhost/code/index.php/memberwsvc. It may be down for maintenance or configured incorrectly.


Looking for your reply Guys...




Theme © iAndrew 2016 - Forum software by © MyBB