Re: FW: SV: [SOAP] SoapServer & SoapFault

From: Date: Thu, 24 Feb 2005 10:25:45 +0000
Subject: Re: FW: SV: [SOAP] SoapServer & SoapFault
References: 1 2  Groups: php.soap 
Request: Send a blank email to php-soap+get-1755@lists.php.net to get a copy of this message
David Kingma | jool.nl a écrit :
I already try... it's haw it work with SoapClient... Try{$client->__call($function, $param)}catch(SoapFault $fault) {...} But SoapServer::handle() return nothing: no data, no exception... I catch nothing just try: <?php $server = new SoapServer(null, "http://test/"); try {
    $server->handle("this is not a valid soap query"); } catch (Exception $e) {
    echo "I catch the Error !!! \n";
} ?> Some other idee ??? I didn't have more...
I thought your 'query error' was a db query error :). I don't think it's possible, unless you can compile your own soap extension. In that case you might remove the following lines in soap.c: 1773> zend_clear_exception(TSRMLS_C); 1774> zend_bailout(); Remember that you than have to catch every exception (which allows you to check if there was an exception and do some logging actions). This is just an option, it's untested in every way! Regards, David Thanks...
Is it possible to hope for a SoapServer::handle modification in PHp 5.1 to throw such exceptions ? regards, FENDT Charles

« previous php.soap (#1755) next »