Re: [SOAP] Can't get simple code to work.

From: Date: Mon, 18 Feb 2008 02:20:23 +0000
Subject: Re: [SOAP] Can't get simple code to work.
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2765@lists.php.net to get a copy of this message
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


« previous php.soap (#2765) next »