note 105091 deleted from soapclient.soapclient by cmb
| From: | cmb@php.net | Date: | Sun, 20 Oct 2019 09:17:47 +0000 |
| Subject: | note 105091 deleted from soapclient.soapclient by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212726@lists.php.net to get a copy of this message | ||
Note Submitter: svenr at selfhtml dot org
----
The "classmap" option actually is a mapping from the "ComplexType" used within
the SOAP to your PHP Classes.
Do not confuse the XML tag names returned for your request with these ComplexTypes. SOAP allows them
to be different.
I had something like this:
...
<soapenv:body>
<ns1:TagName>
<ns1:Content>FooBar</ns1:Content>
</ns1:TagName>
</soapenv:body>
TagName is not the key you want to put in your classmap, you have to know the name of the
ComplexType this TagName refers to. This info is contained inside the WSDL resource.