Can't get simple code to work.
| From: | Andrew Peterson | Date: | Mon, 18 Feb 2008 01:50:01 +0000 |
| Subject: | Can't get simple code to work. | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-2764@lists.php.net to get a copy of this message | ||
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 3If anyone can point me in the right direction I would really appreciate it. Thanks, Andrew Peterson Gretschdrummer@gmail.com