Constructors not called when using classmap option in SoapClient

From: Date: Thu, 05 Jun 2008 09:39:10 +0000
Subject: Constructors not called when using classmap option in SoapClient
Groups: php.soap 
Request: Send a blank email to php-soap+get-2810@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.

« previous php.soap (#2810) next »