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
Help with Pear Soap Client to weather service [message #186373] Thu, 10 July 2014 11:16 Go to previous message
mceexpert is currently offline  mceexpert
Messages: 3
Registered: July 2014
Karma:
Junior Member
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);
}
[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 01 05:01:40 GMT 2024

Total time taken to generate the page: 0.03822 seconds