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 #186374 is a reply to message #186373] Thu, 10 July 2014 12:45 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/10/2014 7:16 AM, 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);
> }
>

Did you ask cdyne? They know their APIs better than anyone else.


--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
[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 13:59:25 GMT 2024

Total time taken to generate the page: 0.03333 seconds