« Return to Thread: E_ERROR in SoapClient

Re: Re: E_ERROR in SoapClient

by David Zülke-3 :: Rate this Message:

Reply to Author | View in Thread

On 31.07.2009, at 18:37, Richard Quadling wrote:

> 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




smime.p7s (3K) Download Attachment

 « Return to Thread: E_ERROR in SoapClient