| Posted by Sergei Riaguzov on 08/01/07 14:44 
Hi,
 How can I catch errors produced by SOAP server with SoapClient? The first
 thing which comes in mind is eval() but maybe there is a better way? The
 server is sending some fault information and then SoapClient->call()
 fails with some ugly messages containing PHP code.
 
 Is it possible to do something like
 
 try {
 $client->call(...)
 } catch (smth) {
 do_smth()
 }
 
 in PHP? Or at least call eval not on a string which is very ugly? And
 maybe there is also a way to obtain SOAP server's error message from
 SoapClient?
 [Back to original message] |