CodeIgniter Forums
NuSoap Error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: NuSoap Error (/showthread.php?tid=53787)



NuSoap Error - El Forum - 08-09-2012

[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...