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

Can't get simple code to work.


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

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

echo $client;



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.


Andrew Peterson

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

[PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux