Forums Register Login

Jaxb creates duplicated namespace declaration from output xml

+Pie Number of slices to send: Send
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,
Whatever. Here's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1539 times.
Similar Threads
Binding error
Have a question about accessing the SOAP response via VBA client.
what's wrong with this SOAP1.2 MESSAGE?
Multiple faults in WSDL???
Web service client - XML to Object problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 20:04:07.