note 94151 added to soapclient.soapclient

From: Date: Mon, 19 Oct 2009 20:14:30 +0000
Subject: note 94151 added to soapclient.soapclient
Groups: php.notes 
Request: Send a blank email to php-notes+get-161881@lists.php.net to get a copy of this message
I had an issue figuring out the use of classmap that took me quite a while to figure out. I was assuming the WSDL type the docs were referring to was the name of the element being returned in the SOAP, so like, <ns1:node id="8675309" /> and I was wondering why mapping 'classmap'=>array('node'=>'MyNode') did nothing. That's because in my WSDL I defined node as: <xsd:element name="node" type="tns:nodeType" /> The classmap I needed was: 'classmap'=>array('nodeType'=>'MyNode') I was able to find the type names using SoapClient->__getTypes() Later, I realized where I could look inside the WSDL for the typename I needed. I dunno if I missed something painfully obvious but maybe this can clear up some of the docs. ---- Server IP: 192.41.40.227 Probable Submitter: 192.223.243.6 ---- Manual Page -- http://www.php.net/manual/en/soapclient.soapclient.php Edit -- https://master.php.net/note/edit/94151 Del: integrated -- https://master.php.net/note/delete/94151/integrated Del: useless -- https://master.php.net/note/delete/94151/useless Del: bad code -- https://master.php.net/note/delete/94151/bad+code Del: spam -- https://master.php.net/note/delete/94151/spam Del: non-english -- https://master.php.net/note/delete/94151/non-english Del: in docs -- https://master.php.net/note/delete/94151/in+docs Del: other reasons-- https://master.php.net/note/delete/94151 Reject -- https://master.php.net/note/reject/94151 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161881) next »