Re: [SOAP] Re: E_ERROR in SoapClient

[email protected] (David Zülke)
Newsgroups php.soap
Message-ID <[email protected]>
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 (application/pkcs7-signature, 2.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.