Re: Can't get simple code to work.

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

 



Looks like you are having some network connectivity problems. Except the 'echo $client; ' line, your code is OK. I tested and it works. Double check your network connectivity.

Samisa...

Andrew Peterson wrote:
Hello,

I'm hoping I'm just doing something stupid. When I use the following code:

<?php
echo "TEST<br/>";
$client = new SoapClient("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl";);

echo $client;

var_dump($client->__getFunctions());
var_dump($client->__getTypes());

?>

I get no errors on one server and I get the following errors on my local server:

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity "http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl"; in /Library/WebServer/TESTING/SOAP/soap_test.php on line 3

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl' in /Library/WebServer/TESTING/SOAP/soap_test.php:3 Stack trace: #0 /Library/WebServer/TESTING/SOAP/soap_test.php(3): SoapClient->SoapClient('http://www.weat...') #1 {main} thrown in /Library/WebServer/TESTING/SOAP/soap_test.php on line 3


If anyone can point me in the right direction I would really appreciate it.


Thanks,

Andrew Peterson
Gretschdrummer@gmail.com


--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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

  Powered by Linux