RE: $client->SomeFunction vs. $client->__soapCall("SomeFunction" ...)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux