PHP SOAP namespace issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


      

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux