Re: Passing objects to soap server, complexType, classmap
| From: | Michael Rasmussen | Date: | Sun, 18 Jun 2006 22:32:47 +0000 |
| Subject: | Re: Passing objects to soap server, complexType, classmap | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2311@lists.php.net to get a copy of this message | ||
On Mon, 19 Jun 2006 10:17:06 +1200, Morgan Pyne wrote:
>
> I have defined a classmap on both the client & server for the object that
> I am trying to pass as a parameter.
If you are building your server and client from a WSDL you do not need to
use classmap. Simple wrap the response inside a SoapParam:
$obj = new someObj();
return SoapParam($obj, 'name_of_comlexType_from_WSDL');
The server/client will automatically lookup the definition in the WSDL to
be able to serialize or deserialize.
--
Hilsen/Regards
Michael Rasmussen
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917