RE: [SOAP] $client->SomeFunction vs. $client->__soapCall("SomeFunction" ...)
[email protected] ("Christian Wenz")
| Newsgroups | php.soap |
|---|---|
| Message-ID | <00d501c826ea$fe123cf0$fa36b6d0$@de> |
Hi,
> $client->GetWeatherByZipCode( array('ZipCode' => '54601'));
>
> $client->__soapCall("GetWeatherByZipCode", array('ZipCode' =>
> '54601'));
Usually, you would only need to call $client->GetWeatherByZipCode('54601').
However the endpoint is a doc/lit .NET web services which needs the PHP code
to pass an object, for instance like this:
$params->ZipCode = '54601';
$client->__soapCall('GetWeatherByZipCode', array($params));
Otherwise, the ZIP code information gets lost when calling the service.
HTH
Christian
--
http://www.hauser-wenz.de/blog/