2014-02-12 18:02 GMT+01:00 Sergey Beryozkin <[email protected]>:

> The only workaround in CXF 2.7.3:
>
> Override JSONProvider.createWriter, cast it to
> org.codehaus.jettison.mapped.MapppedXmlStreamWriter, reflectively access its
> private MappedNamespaceConvention 'convention' field and
> finally set the required property on it.
>
> if you do try it and make it work and if you plan to stay with CXF 2.7.3 for
> a while then I can update MapppedXmlStreamWriter a bit to get a
> non-reflective access to MappedNamespaceConvention for Jettison 1.3.6, will
> do in in a couple of months time
>
> Cheers. Sergey
>


Thanks.
Finally I upgraded to CXF 2.7.8 and I made a CustomJSONProvider from
2.7.8 sources .
I just had to modify a couple of lines in createWriter ( to add
support for the feature )
And works !!

It would be great if you could backport it from 2.7.10 to 2.7.8.

Regards

Reply via email to