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>
<child>hfkdsj</child>
</parent>
 
After Axis serializes it to a String it becomes:
 
<parent xmlns=defaultNS>
<child xmlns=defaultNS>hfkdsj</child>
</parent>
 
Why is the additional default namespace getting added to the child element? Doesn't look like it's because of the parser feature http://xml.org/sax/features/namespaces=true. What is making Axis do this? Is there a way to turn it off?
 
Thanks,
Sonali

Reply via email to