Re: Re: Mapping incoming object to PHP class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux