Re: use_soap_error_handler
| From: | FENDT Charles | Date: | Thu, 17 Feb 2005 14:31:56 +0000 |
| Subject: | Re: use_soap_error_handler | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208915@lists.php.net to get a copy of this message | ||
Jochem Maas a écrit :
FENDT Charles wrote:is_soap_fault is only for SoapClient...Hello... Someone knows how this work ? use_soap_error_handlerI don't have a clue but looking at the docs you have at least 2 other ways of handling SOAP errors: 1. http://php.paradoxical.co.uk/manual/en/function.is-soap-fault.php
2. use a try/catch block try {and "try" catch nothing !!! just an exmple : <?php echo "begin\n"; $server = new SoapServer(null, "http://test/"); try { $server->handle(""); } catch (Exception $e) { echo "ERROR\n"; } echo "end\n"; ?> :-( that's why y search some stuff over use_soap_error_handler Is the solution there ??? FENDT Charles// do some SOAP stuff here} catch (SoapFault $e) {// catch SOAP specific exceptions here} catch (Exception $e) {// catch general exceptions}
I DO NOT KNOW what the classname of the Soap Exception assuming SoapServer does not just throw std Exceptions... so I guessed that it might be called SoapFault.... the manual seems to indicate that this is correct. HTH - (I just figured out wtf HTH means :-)I search a way to handle SoapFault exceptions from the SoapServer class... Regards FENDT Charles