Joined: 13 Apr 2009 |
Posts: 1 |
|
|
 |
Posted: Sun Apr 12, 2009 11:15 am |
|
 |
 |
 |
 |
Hi,
I have following problem.
$server = new nusoap_server();
$server->configureWSDL('SpNetWebService', $ns);
$server->wsdl->schemaTargetNamespace = $ns;
$server->register(
'Hello',
array(),
array('return'=>'xsd:string'),
$ns
);
$HTTP_RAW_POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
$server->service($HTTP_RAW_POST_DATA);
//It is OK. I can get SoapException on client side.
function Hello()
{
return new nusoap_fault('SOAP-ENV:Client', '', 'Hello error.','Exception');
}
//Not correct version. I can't get SoapException on client side.
function Hello()
{
try
{
throw new Exception("Exception");
}
catch (Exception $e)
{
return new nusoap_fault('SOAP-ENV:Client', '', 'Hello error.','Exception');
}
}
|
|
|