Hi All,
Im doing a get call to receive one response like below.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root xmlns:ns2="http://www.example.com/BAR"
xmlns="http://www.example.com/FOO" xmlns:ns3="http://www.example.com/OTHER">
<ns2a>A</ns2:a>
*B*
<ns3:c>OTHER</ns3:c>
</root>
but one time am getting like above and some other time am getting like below
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root xmlns="http://www.example.com/BAR"
xmlnsns2:="http://www.example.com/FOO"
xmlns:ns3="http://www.example.com/OTHER">
<ns2:b>B</ns2:b>
<ns3:c>OTHER</ns3:c>
</root>
From the above the namespace prefixes are changing.
How to avoid the the Namespaces inconsistency.*This is in cxf 2.2*.
please post you comments thanks in advance.
Im doing a get call to receive one response like below.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root xmlns:ns2="http://www.example.com/BAR"
xmlns="http://www.example.com/FOO" xmlns:ns3="http://www.example.com/OTHER">
<ns2a>A</ns2:a>
*B*
<ns3:c>OTHER</ns3:c>
</root>
but one time am getting like above and some other time am getting like below
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root xmlns="http://www.example.com/BAR"
xmlnsns2:="http://www.example.com/FOO"
xmlns:ns3="http://www.example.com/OTHER">
<ns2:b>B</ns2:b>
<ns3:c>OTHER</ns3:c>
</root>
From the above the namespace prefixes are changing.
How to avoid the the Namespaces inconsistency.*This is in cxf 2.2*.
please post you comments thanks in advance.