• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.