You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by smkreddy <sm...@gmail.com> on 2014/08/25 17:45:41 UTC

CXF2.2 Response Namespaces inconsistency

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">
     A 
    <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.



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF2-2-Response-Namespaces-inconsistency-tp5748120.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF2.2 Response Namespaces inconsistency

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi

CXF 2.2 has reached the eol status long time ago. CXF 2.7.x is the 
oldest active CXF branch at the moment, CXF 2.7.12 being the latest tag.
Please try the latest tag, most likely the issue has been addressed there

Cheers, Sergey
On 25/08/14 16:45, smkreddy wrote:
> 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">
>       A
>      <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.
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF2-2-Response-Namespaces-inconsistency-tp5748120.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>