fpachecom Posted February 27, 2007 Share Posted February 27, 2007 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!!!! Quote Link to comment https://forums.phpfreaks.com/topic/40371-soap-client-exception/ Share on other sites More sharing options...
Ninjakreborn Posted February 27, 2007 Share Posted February 27, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/40371-soap-client-exception/#findComment-195365 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.