RE: [SOAP] SOAP Body Formation

From: Date: Tue, 27 Jun 2006 14:49:48 +0000
Subject: RE: [SOAP] SOAP Body Formation
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2339@lists.php.net to get a copy of this message
Thank you for your response, Would you have a small example to demonstrate this? Just trying to get pointed in the right direction. Thank you. Ken Vandegrift -----Original Message----- From: Knut Urdalen [mailto:knut.urdalen@telio.no] Sent: Tuesday, June 27, 2006 2:53 AM To: Vandegrift, Ken Cc: soap@lists.php.net Subject: Re: [SOAP] SOAP Body Formation Vandegrift, Ken wrote: >The method I need for this service is: >activate-add(activate-add-request $body) > >the 'activate-add-request' is the xml fragment above. Now, when I try >to use this method as $client->activate-add($request), I get errors >from PHP stating that SoapClient::$activate property is undefined and >SoapClient::$add is undefined. Is there additional setup that needs to >be done by my script to access these methods? > > __soapCall is your friend: http://no.php.net/manual/en/function.soap-soapclient-soapcall.php '-' is not a valid character in functions and properties so you have to map it yourself. I tend to extend the SoapClient object and write a wrapper function in such situations. Regards, Knut Urdalen http://www.urdalen.com

« previous php.soap (#2339) next »