Re: [SOAP] SOAP Body Formation
| From: | Knut Urdalen | Date: | Tue, 27 Jun 2006 09:53:25 +0000 |
| Subject: | Re: [SOAP] SOAP Body Formation | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2338@lists.php.net to get a copy of this message | ||
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