Re: [SOAP] Re: uncaught soap exception inside try catch
| From: | George Schlossnagle | Date: | Wed, 07 Sep 2005 04:53:02 +0000 |
| Subject: | Re: [SOAP] Re: uncaught soap exception inside try catch | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1980@lists.php.net to get a copy of this message | ||
On Sep 7, 2005, at 12:37 AM, dtra wrote:
dtra wrote:You should try apc instead of mmcache, you won't lose features under PHP5. Georgehi all i'm having an issue with some soap code i'm trying to run it keeps coming back with uncaught soap exception even though i have it running inside a try catch block [php] $sc = new SoapClient($strWsdlUrl);nm, the problem was that mmcache was preventing php from handling any exceptions at all we set up the .htaccess file and it is working nowtry { $strID = $sc->getId($strTempSessionID); } catch (SoapFault $strException) { print 'failed'; exit; }[/php] when i run the script from the command line without the $strTempSessionID variable it does catch the exception but when i run the script from a web browser without the $strTempSessionID variable it says uncaught exception i have tried catching with Exception, I have tried both individually as well as together sorry, exceptions never were my strong point can anyone help me out? thanks dave