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?
<?php
ini_set('defaul t_socket_timeou t', 10); //set the socket timeout lower
then the execution timeout for this page.
try {
$commandService Client = new
SOAPClient(http://www.somevolitileserverthatsdo...test.wsdl?WSDL,
array('exceptio ns' => 0, "trace" => 1));
} catch(exception $e) {
exit("oopsie!!" );
}
?>
Expected:
oopsie!!!
Actual output:
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://www.somevolitil eserverthatsdow nrightnow.com/test.wsdl?WSDL' in
D:\Program Files\Apache Group\Apache2\h tdocs\Client.ph p on line 79
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?
<?php
ini_set('defaul t_socket_timeou t', 10); //set the socket timeout lower
then the execution timeout for this page.
try {
$commandService Client = new
SOAPClient(http://www.somevolitileserverthatsdo...test.wsdl?WSDL,
array('exceptio ns' => 0, "trace" => 1));
} catch(exception $e) {
exit("oopsie!!" );
}
?>
Expected:
oopsie!!!
Actual output:
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://www.somevolitil eserverthatsdow nrightnow.com/test.wsdl?WSDL' in
D:\Program Files\Apache Group\Apache2\h tdocs\Client.ph p on line 79