PHP SOAP namespace issue

[email protected] (Srikanth Madugundi)
Newsgroups php.soap
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.