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 #186379 is a reply to message #186373] Thu, 10 July 2014 18:35 Go to previous messageGo to previous message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma:
Senior Member
mceexpert(at)gmail(dot)com wrote in
news:bb68260a-cb54-4763-8fe6-dde47f1ae42a(at)googlegroups(dot)com:

> 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.
>
[...]
> $method = 'GetCityWeatherByZIP';
> $params = array('ZIP' => '07108');
> $result = $client->call($method, $params);

Four obvious possible explanations for the error message you're seeing:
1) an associative array is not the correct structure to use for passing this parameter
2) 'ZIP' is the wrong name
3) a five-character string is not the expected format for the zip code data
4) 07108 is not a valid zip code

What have you done to eliminate each of these as a possible cause of the problem?
[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 09:19:43 GMT 2024

Total time taken to generate the page: 0.04120 seconds