Re: SV: [SOAP] SoapServer & SoapFault

From: Date: Fri, 25 Feb 2005 20:13:15 +0000
Subject: Re: SV: [SOAP] SoapServer & SoapFault
References: 1 2 3  Groups: php.soap 
Request: Send a blank email to php-soap+get-1757@lists.php.net to get a copy of this message
On Thu, 24 Feb 2005 09:30:22 +0100, FENDT Charles wrote: > The problem is with server own SoapFaults and my SoapFaults... It s > possible for me not to send SoapFault in my daemon... The typical problem > is a query error... handle() never give me the hand... > I use ob_start() to catch the soap response to redirect it on the client > socket. It work fine... > But if a soap fault is send, my code is never executed... and the > soapfault is printed on stdout!!! > > so... I need to catch soapFault events... Isn't SoapFault extendable? If I understand the Exception implementation in PHP5 all exceptions has to extend from Exception so in that way you could make your own exception handle and make that extend SoapFault: class MySoapFault extends SoapFault { public function __construct($message) { if ($message->queryError) { myOwnHandle(); } parent::__construct($message); } } -- Hilsen/Regards Michael Rasmussen http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917

« previous php.soap (#1757) next »