Re: [SOAP] Re: Mapping incoming object to PHP class
| From: | Ville Mattila | Date: | Thu, 05 Jan 2006 05:05:05 +0000 |
| Subject: | Re: [SOAP] Re: Mapping incoming object to PHP class | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2067@lists.php.net to get a copy of this message | ||
Ville Mattila wrote:
> $server = new SoapServer("phonebook.wsdl");
> $server->setClass("PhonebookService",
> array("classmap" =>
> array('Contact' => 'Contact'),
> ));
>
> $server->handle();
I found the problem myself after a detailed view over the code.
array("classmap" =>) should be defined when constructing the
SoapServer. The corrent syntax follows:
$server = new SoapServer("phonebook.wsdl",
array("classmap" =>
array('Contact' => 'Contact'),
));
$server->setClass("PhonebookService");
$server->handle();
Thanks for your time!
Ville