Hi

On Wed, Jan 5, 2011 at 9:33 PM, cj91 <[email protected]>wrote:

>
> That is exactly what i need!
>
> Is there a way to do that with JAX-WS??? It doesn't seem
> JAXBElementProvider
> is part of the JAXB or JAXWS CXF bindings
>

You might want to try experimenting with the following feature :

http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-JAXRSDataBinding

This may or may not work for you - if the request body is unwrapped into
multiple method parameters or if a method response is expected to be wrapped
then it won't work.

You can also try to register a custom XMLStreamWriter which will wrap an
XMLStreamWriter available on the output message just before CXF
JAXBDataBinding starts writing. This approach is a bit more involved but it
can let you change or ignore the names of some elements, etc

cheers, Sergey


> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Overriding-JAXB-annotations-tp3320779p3329611.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to