This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Jaxb creates duplicated namespace declaration from output xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jaxb creates duplicated namespace declaration from output xml" Watch "Jaxb creates duplicated namespace declaration from output xml" New topic
Author

Jaxb creates duplicated namespace declaration from output xml

Sean Nguyen
Greenhorn

Joined: Sep 26, 2007
Posts: 3
Hi,
I have this problem when I use jaxb to create output xml. My output xml looks like this:

<data>
<instanceData>
<individual>
<homeAddress>
<LocalAddress xsi:type="ns3:CompoundLocalAddress" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="http://www.tmforum.org/NGOSS/SID/Business/7.0/Common">
<positionNr xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">1</positionNr>
<fullAddress xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema">7783 SOUTH 73 RD STREET</fullAddress>
</LocalAddress>
<LocalAddress xsi:type="ns3:CompoundLocalAddress" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="http://www.tmforum.org/NGOSS/SID/Business/7.0/Common">
<positionNr xsi:type="xs:int" xmlns:xs="http://www.w3.org/2001/XMLSchema">2</positionNr>
<fullAddress xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema"></fullAddress>
</LocalAddress>
</homeAddress>
</individual>
</instanceData>
</data>

There are duplicate namespace declaration on the output. How can I set it to be delcared only one time?

Thanks,
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Jaxb creates duplicated namespace declaration from output xml
 
Similar Threads
Binding error
Have a question about accessing the SOAP response via VBA client.
Web service client - XML to Object problem
what's wrong with this SOAP1.2 MESSAGE?
Multiple faults in WSDL???