non-trappable SOAP-ERROR for SOAPClient()?? This is unbelievable...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

It seems that if my WSDL source goes offline SOAPClient() creates
un-trappable fatal errors. I don't think this is right. Shouldn't this
be, at very least,  trappable exceptions?  This is the internet...
things go down, connections are dropped....... right??

What am i doing wrong?


ini_set('default_socket_timeout', 10);   //set the socket timeout lower
then the execution timeout for this page.

try {

    $commandServiceClient = new
SOAPClient( ,
array('exceptions' => 0, "trace" => 1));

} catch(exception $e) {





Actual output:

Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
' ' in
D:\Program Files\Apache Group\Apache2\htdocs\Client.php on line 79

Site Timeline