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

[email protected] (Samisa Abeysinghe)
Newsgroups php.soap
Message-ID <[email protected]>
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
> [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.