Hi Jacek On Mon, Mar 21, 2011 at 7:49 PM, Jacek Furmankiewicz <[email protected]>wrote:
> We are using CXF's automatic JSON support on all of our REST services and > it > works great with JAXB annotations. > > However, we have a requirement to send the same JSON payload from our JAXB > entities to a different source, not triggered via REST. > > I looked at Jettison and it has no built-in support for JAXB. So I am > guessing in CXF there is support somewhere to convert JAXB annotations to > JSON. > > Is it possible to use that directly (i.e. outside the context of a REST > service)? > if no, could you point me to the code where it is done so I could try and > extract it to accomplish what we need? > > I'm not entirely sure how to do it, but if search for "CXF JAX-WS JSON" then you should find something; also, if you do use JAX-RS then you can reuse the same JSONProvider instance (any provider really) with SOAP services as well, please check: http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-JAXRSDataBinding Cheers, Sergey > Thank you > Jacek >
