axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sonali J. Kanaujia" <son...@sonicsoftware.com>
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>
<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
<blocked::http://xml.org/sax/features/namespaces=true> . What is making
Axis do this? Is there a way to turn it off?
 
Thanks,
Sonali
 

Mime
View raw message