Constructors not called when using classmap option in SoapClient
- To: <soap@lists.php.net>
- Subject: Constructors not called when using classmap option in SoapClient
- From: "globule bleu | David Georges" <david@globulebleu.com>
- Date: Thu, 5 Jun 2008 11:39:10 +0200
- Thread-index: AcjG7lRzEzA3rZrCTXeSpU2DjWC1bwAAIgHwAAAvbEA=
- Thread-topic: 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.
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[PHP Home]
[PHP Users]
[Kernel Newbies]
[PHP Database]
[Yosemite]