#33567 [NEW]: SoapClient Only Works If Exceptions Turned Off

From: Date: Mon, 04 Jul 2005 17:52:35 +0000
Subject: #33567 [NEW]: SoapClient Only Works If Exceptions Turned Off
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81377@lists.php.net to get a copy of this message
From: please-no-spam at blueyonder dot co dot uk Operating system: Windows XP Pro PHP version: 5.1.0b2 PHP Bug Type: SOAP related Bug description: SoapClient Only Works If Exceptions Turned Off Description: ------------ When I try to create my own web service using php 5.0.3 or 5.1.0b2 using Dmitry Stogov's example at zend.com code on Windows XP Pro IIS6: eg: $x = SoapClient(WSDL); I get: SoapFault exception: [SOAP-ENV:Client] looks like we got no XML document in c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php:13 Stack trace: #0 c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(13): SoapClient->__call('getQuote', Array) #1 c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(13): SoapClient->getQuote('ibm') #2 {main} Enabling Trace & Disabling exceptions like this: $x = SoapClient(WSDL, array("trace"=>1, "exceptions"=>0)); and the problem goes away. This means I can't enable exceptions with the Soap Client. Reproduce code: --------------- $client = new SoapClient("stockquote.wsdl"; try { $client->getQuote("ibm"); echo $client->__getLastResponse(); } catch (SoapFault $exception) { echo $exception; } Expected result: ---------------- 98.42 Actual result: -------------- SoapFault exception: [SOAP-ENV:Client] looks like we got no XML document in c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php:13 Stack trace: #0 c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(13): SoapClient->__call('getQuote', Array) #1 c:\Inetpub\wwwroot\Php\DummyWebService\MyWebServerClient.php(13): SoapClient->getQuote('ibm') #2 {main} -- Edit bug report at http://bugs.php.net/?id=33567&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33567&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33567&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33567&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33567&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33567&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33567&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33567&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33567&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33567&r=support Expected behavior: http://bugs.php.net/fix.php?id=33567&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33567&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33567&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33567&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33567&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33567&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33567&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33567&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33567&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33567&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33567&r=mysqlcfg

« previous php.bugs (#81377) next »