FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Help with Pear Soap Client to weather service
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Help with Pear Soap Client to weather service [message #186382 is a reply to message #186373] Thu, 10 July 2014 19:31 Go to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 10-7-2014 13:16, mceexpert(at)gmail(dot)com wrote:
> Hello,
>
> I am trying to do a simple soap call to a weather service and I keep getting Invalid ZIP error. Can someone tell me what I am doing wrong below is my code.
>
> Thanks
>
> require_once 'SOAP/Client.php';
>
> $client = new Soap_Client('http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL');
> $method = 'GetCityWeatherByZIP';
> $params = array('ZIP' => '07108');
> $result = $client->call($method, $params);
>
> if (PEAR::isError($result)) {
> echo $result->getMessage();
> } else {
> print_r($result);
> }
>

i don't get a 'Invalid ZIP error', when i copy/paste the example from:
http://wiki.cdyne.com/index.php/CDYNE_Weather
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Repository pattern implementation that knows nothing (Jon Snow) about the database table and column names
Next Topic: Encoding Problems
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 22 08:58:07 GMT 2024

Total time taken to generate the page: 0.05278 seconds