Hi,

 

Does anyone know how to remove namespaces from SOAP response in Axis2?

 

Here is an example of what I wanted.

 

Original SOAP Envelope

 

<soapenv:Envelope

    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

   <soapenv:Body>

      <ns1:loginResponse xmlns:ns1="urn:ws.rsys.com">

         <ns1:loginReturn>-31853ad2:1157fefd8cf:5b3c</ns1:loginReturn>

      </ns1:loginResponse>

   </soapenv:Body>

</soapenv:Envelope>

 

SOAP Envelope After removing namespaces

 

<soapenv:Envelope

    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";

    xmlns="urn:ws.rsys.com">

   <soapenv:Body>

      <loginResponse>

         <loginReturn>-31853ad2:1157fefd8cf:5b3c</loginReturn>

      </loginResponse>

   </soapenv:Body>

</soapenv:Envelope>

 

Thanks in advance

Raghu

Reply via email to