Home  |  Linux  | Mysql  | PHP  | XML
From:globule bleu | David Georges Date:Fri Jun 27 02:13:48 2008
Subject:Constructors not called when using classmap option in SoapClient
When using classmap option to map the SOAP results to a class, the constructor
of the object you've mapped to is not called. 

$client = new SoapClient("url_to_wsdl", 
   array('classmap' => array('contact' => "Contact"));

$params = array("1");

$contact = $client->__soapCall("get_contact", $params);

Expected result:

A contact object that has properties initialized (i.e. db connections,
...).

Actual result:

A contact object without the properties.


Thanks for your help.

David Georges.


Navigate in group php.soap at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants