axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sonali J. Kanaujia" <>
Subject Axis 1.2 Message.getSOAPPartAsString( ) - redundant namespaces
Date Thu, 13 Oct 2005 20:15:31 GMT
When using Axis's serializer code in Message.getSOAPPartAsString( ); to
parse the SOAPEnvelope and serialize it as String, I see that default
namespace gets appended to every element within the SOAP Body.
For example, if the input SOAP Body contains:
<parent xmlns=defaultNS>
After Axis serializes it to a String it becomes:
<parent xmlns=defaultNS>
<child xmlns=defaultNS>hfkdsj</child>
Why is the additional default namespace getting added to the child
element? Doesn't look like it's because of the parser feature
<blocked::> . What is making
Axis do this? Is there a way to turn it off?

View raw message