On 31.07.2009, at 18:37, Richard Quadling wrote:
Really? Look at my code ... <?php try { // $client=newSoapClient('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