Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14097
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Date | Thu, 10 Jul 2014 21:31:14 +0200 |
| From | Luuk <luuk@invalid.lan> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.php |
| Subject | Re: Help with Pear Soap Client to weather service |
| References | <bb68260a-cb54-4763-8fe6-dde47f1ae42a@googlegroups.com> |
| In-Reply-To | <bb68260a-cb54-4763-8fe6-dde47f1ae42a@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Message-ID | <29639b-848.ln1@luuk.invalid.lan> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 2001:980:9089:1:55e9:4cfe:4cca:4362 |
| X-Trace | 1405021202 news.xs4all.nl 2868 [2001:980:9089:1:55e9:4cfe:4cca:4362]:48481 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.php:14097 |
Show key headers only | View raw
On 10-7-2014 13:16, mceexpert@gmail.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);
> }
>
i don't get a 'Invalid ZIP error', when i copy/paste the example from:
http://wiki.cdyne.com/index.php/CDYNE_Weather
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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