Re: [SOAP] Re: E_ERROR in SoapClient
| From: | David Zülke | Date: | Sat, 01 Aug 2009 14:22:54 +0000 |
| Subject: | Re: [SOAP] Re: E_ERROR in SoapClient | ||
| References: | 1 2 3 4 5 6 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2972@lists.php.net to get a copy of this message | ||
On 31.07.2009, at 18:37, Richard Quadling wrote:
Attachment: [application/pkcs7-signature] smime.p7s
Really? Look at my code ... <?php try { // $client=new SoapClient('http://api.rkd.reuters.com/schemas/wsdl/Charts_1_HttpAndRKDToken.wsdl', array('exceptions' => True)); $client = new SoapClient( "http://127.0.0.1/nonexiting.wsdl", array('exceptions' => True)); } catch(Exception $exception) { echo $exception; } echo PHP_EOL, PHP_EOL, "Look I finished the program and didn't crash!"; ?> See the message at the end? I run this and get output of ... =============== SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://127.0.0.1/nonexiting.wsdl' : failed to load external entity "http://127.0.0.1/nonexiting.wsdl" in Z:\soapbad.php:5 Stack trace: #0 Z:\soapbad.php(5): SoapClient->SoapClient('http://127.0.0....', Array) #1 {main} Look I finished the program and didn't crash! =================What PHP version is that? - David
Attachment: [application/pkcs7-signature] smime.p7s