note 83718 added to function.soap-soapclient-construct
| From: | david at globulebleu dot com | Date: | Mon, 09 Jun 2008 07:44:45 +0000 |
| Subject: | note 83718 added to function.soap-soapclient-construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140258@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 193.190.67.6
Probable Submitter: 81.188.72.31
----
Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-construct.php
Edit -- https://master.php.net/note/edit/83718
Del: integrated -- https://master.php.net/note/delete/83718/integrated
Del: useless -- https://master.php.net/note/delete/83718/useless
Del: bad code -- https://master.php.net/note/delete/83718/bad+code
Del: spam -- https://master.php.net/note/delete/83718/spam
Del: non-english -- https://master.php.net/note/delete/83718/non-english
Del: in docs -- https://master.php.net/note/delete/83718/in+docs
Del: other reasons-- https://master.php.net/note/delete/83718
Reject -- https://master.php.net/note/reject/83718
Search -- https://master.php.net/manage/user-notes.php