FW: SV: [SOAP] SoapServer & SoapFault

From: Date: Thu, 24 Feb 2005 09:02:52 +0000
Subject: FW: SV: [SOAP] SoapServer & SoapFault
Groups: php.soap 
Request: Send a blank email to php-soap+get-1752@lists.php.net to get a copy of this message
> -----Original Message----- > 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!!! The way I solved such a problem (for logging and db transaction purposes) is to throw an Exception instead of a soapFault. Try{server->handle()}catch(Exception $e){do the logging and return a manual soap fault with the same message as the exception} Regards, David

« previous php.soap (#1752) next »