PHP SOAP namespace issue
| From: | Srikanth Madugundi | Date: | Thu, 23 Apr 2009 17:23:40 +0000 |
| Subject: | PHP SOAP namespace issue | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-2925@lists.php.net to get a copy of this message | ||
Hi,
I am using SOAP extension for php
and have a problem with namespaces. Here is a sample SOAP request a client
sends.
typ="http://aqua.yahoo.com/types">
<soapenv:Header/>
<soapenv:Body>
<submitAdTestASync>
<TestRequest id="1"
iteration="1">
<Test
name="AquaTest">
<typ:TR extId="1" numOfTestCycles="2"
type="html" Queue="aqua"></typ:TR>
</Test>
</TestRequest>
</submitAdTestASync>
</soapenv:Body>
</soapenv:Envelope>
In the above request
‘submitAdTestASync’ is an operation defined in the WSDL file.
After I send this request I see
SoapServer handles it properly. SOAP calls the method ‘submitAdTestASync’ with
the data contained in <TestRequest> element. The problem is I am unable to
parse this data for further processing since the namespace ‘typ’ is not found, as SOAP removes
header
information and sends only the following tags.
<TestRequest id="1"
iteration="1">
<Test
name="AquaTest">
<typ:TR extId="1" numOfTestCycles="2"
type="html" Queue="aqua"></typ:TR>
</Test>
</TestRequest>
Is there a way in SOAP to inherit
the namespaces defined in <Envelope> to be included in the above
message?
Thanks
-Sri