note 83718 deleted from soapclient.soapclient by crell

From: Date: Mon, 04 Apr 2022 16:50:48 +0000
Subject: note 83718 deleted from soapclient.soapclient by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218095@lists.php.net to get a copy of this message
Note Submitter: david at globulebleu dot com ---- 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.notes (#218095) next »