You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Raghu Upadhyayula <ru...@responsys.com> on 2007/10/10 01:54:24 UTC
[Axis2] How to remove namespaces from SOAP response in Axis2
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