| From | Sent On | Attachments |
|---|---|---|
| Raghu Upadhyayula | Oct 9, 2007 4:54 pm | |
| Alick Buckley | Oct 9, 2007 5:02 pm | |
| Raghu Upadhyayula | Oct 9, 2007 10:53 pm | |
| Maiko Wessel | Oct 10, 2007 12:51 am | |
| Anne Thomas Manes | Oct 11, 2007 9:12 am |
| Subject: | Re: [Axis2] How to remove namespaces from SOAP response in Axis2 | |
|---|---|---|
| From: | Anne Thomas Manes (atma...@gmail.com) | |
| Date: | Oct 11, 2007 9:12:13 am | |
| List: | org.apache.ws.axis-user | |
You only want to set elementFormDefaultQualified to "false" if you want to make the child elements (the method parameters) unqualified. It will not eliminate the generation of namespace prefixes. And it may result in numerous empty namespace declarations (xmlns=""). As a general rule, you should avoid using this option because it will cause interoperability issues.
Anne
On 10/10/07, Maiko Wessel <mwes...@pironet-ndh.com> wrote:
add the following entry to the services.xml:
<schema elementFormDefaultQualified="false"/>
________________________________ Von: Raghu Upadhyayula [mailto:rupa...@responsys.com] Gesendet: Mittwoch, 10. Oktober 2007 07:54 An: axis...@ws.apache.org Betreff: RE: [Axis2] How to remove namespaces from SOAP response in Axis2
Thanks Alick. I haven't tried this option. I'll try and see.
Thanks
Raghu
________________________________
From: Alick Buckley [mailto:Alic...@lansa.com.au] Sent: Tuesday, October 09, 2007 5:03 PM To: axis...@ws.apache.org Subject: RE: [Axis2] How to remove namespaces from SOAP response in Axis2
Did you try the suppress-prefixes option in WSDL2Java?
http://svn.apache.org/viewvc?view=rev&revision=480336Fix for AXIS2-1784 - [ADB] Suppress prefixes in the soap request/response for performance
https://issues.apache.org/jira/browse/AXIS2-1784
added an option "-sp" to suppress namespace prefixes in WSDL2Java/SchemaCompiler.
===========================================================================
-----Original Message----- From: Raghu Upadhyayula [mailto:rupa...@responsys.com] Sent: Wednesday, 10 October 2007 9:54 AM To: axis...@ws.apache.org Subject: [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





