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

From: Date: Wed, 14 Nov 2007 18:20:06 +0000
Subject: RE: [SOAP] $client->SomeFunction vs. $client->__soapCall("SomeFunction" ...)
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2696@lists.php.net to get a copy of this message
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/

« previous php.soap (#2696) next »