08-09-2012, 02:06 AM
[eluser]Sathishkumar[/eluser]
Hi,
I'm new to SOAP webservice, May i know what is the problem in my below code ...
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...
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...