Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14094

Re: Help with Pear Soap Client to weather service

From Doug Miller <doug_at_milmac_dot_com@example.com>
Newsgroups comp.lang.php
Subject Re: Help with Pear Soap Client to weather service
Date 2014-07-10 18:35 +0000
Organization A noiseless patient Spider
Message-ID <XnsA366945EB2C55dougmilmaccom@78.46.70.116> (permalink)
References <bb68260a-cb54-4763-8fe6-dde47f1ae42a@googlegroups.com>

Show all headers | View raw


mceexpert@gmail.com wrote in
news:bb68260a-cb54-4763-8fe6-dde47f1ae42a@googlegroups.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?

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Help with Pear Soap Client to weather service mceexpert@gmail.com - 2014-07-10 04:16 -0700
  Re: Help with Pear Soap Client to weather service Jerry Stuckle <jstucklex@attglobal.net> - 2014-07-10 08:45 -0400
    Re: Help with Pear Soap Client to weather service mceexpert@gmail.com - 2014-07-10 06:40 -0700
      Re: Help with Pear Soap Client to weather service Christoph Michael Becker <cmbecker69@arcor.de> - 2014-07-10 16:00 +0200
      Re: Help with Pear Soap Client to weather service Jerry Stuckle <jstucklex@attglobal.net> - 2014-07-10 10:33 -0400
      Re: Help with Pear Soap Client to weather service Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-07-10 18:28 +0000
  Re: Help with Pear Soap Client to weather service Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-07-10 18:35 +0000
    Re: Help with Pear Soap Client to weather service Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-07-10 18:47 +0000
      Re: Help with Pear Soap Client to weather service mceexpert@gmail.com - 2014-07-10 12:31 -0700
        Re: Help with Pear Soap Client to weather service Jerry Stuckle <jstucklex@attglobal.net> - 2014-07-10 19:30 -0400
        Re: Help with Pear Soap Client to weather service bill <william@TechServSys.com> - 2014-07-11 07:25 -0400
  Re: Help with Pear Soap Client to weather service Luuk <luuk@invalid.lan> - 2014-07-10 21:31 +0200
    Re: Help with Pear Soap Client to weather service Kommunikatsioonitehnoloogia valmistaja <vvvvvvvvvvvvvvvvvvvvvvvvv1@hotmail.com> - 2022-10-30 11:08 -0700

csiph-web