Re: Re: E_ERROR in SoapClient

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux