Re: [SOAP] SOAP Body Formation

From: Date: Tue, 27 Jun 2006 16:19:23 +0000
Subject: Re: [SOAP] SOAP Body Formation
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2340@lists.php.net to get a copy of this message
Vandegrift, Ken wrote:
Would you have a small example to demonstrate this? Hard to create a real example without the WSDL-file, but I would have tried something along these lines:
class MySoapClient extends SoapClient { public function activateAdd($body) { $this->__soapCall('activate-add', array('activate-add-request' => $body)); } } where $body is an array with the element name as an associative index (hopefully it will work for multidimensional arrays too): $body = array( 'merchant-id' => 1234, 'store-code' => 'myStore', // etc... ); Regards, Knut Urdalen http://www.urdalen.com

« previous php.soap (#2340) next »