catch errors with SoapClient

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

Threaded View

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 {
} catch (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  

Re: catch errors with SoapClient

On Wed, 01 Aug 2007 14:44:34 +0000, Sergei Riaguzov wrote:

Quoted text here. Click to load it
OK my bad, there are exceptions in PHP
I've found an example here:

Site Timeline