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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 07:16 Go to previous message
mceexpert is currently offline  mceexpert
Messages: 3
Registered: July 2014
Karma:
Junior Member
add to buddy list
ignore all messages by this user
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: Fri Dec 15 01:36:56 EST 2017

Total time taken to generate the page: 0.00576 seconds