Jump to content

Soap Client Exception


fpachecom

Recommended Posts

Hi There

I was wondering if some one can help me since there is not much web documentation about this topic.

I have this code on my application the problem that I am having is that the catch(SoapFault) is not getting the exception.

How can I catch this exception?

 

ini_set('defaut_socket_timeout',$socketTimeout);

try {

//create soap client and point it to appropriate service WSDL

$objSoapClient = new SoapClient($wsdlUrl, array("connection_timeout"=>$connectionTimeout));

}

//catch exception and print error

catch (SoapFault $fault) {

$strErrorMessage .= 'Server connection is down.Please try again later.'. "\r\n";

}

Thanks!!!!

Link to comment
https://forums.phpfreaks.com/topic/40371-soap-client-exception/
Share on other sites

No offense, but don't get sending topics out to people, it's just goign to piss people off.  Post what you need help about, and if someone know's they will help, do go sending your topic off to people.

 

I don't know enough about Soap to help with this anyway.

Link to comment
https://forums.phpfreaks.com/topic/40371-soap-client-exception/#findComment-195365
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.