You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Yong-Loh <Va...@infosys.com> on 2010/01/07 07:42:08 UTC

CXF with XMLBeans

Hi,

We are using CXF for creating RESTful webservices and XML beans for data
binding. How do we say CXF to use XML beans for data binding?

Any sample code (using CXF with XML Beans) will be of great help.

Thanks & Regards,
Yong-Loh
-- 
View this message in context: http://old.nabble.com/CXF-with-XMLBeans-tp27055518p27055518.html
Sent from the cxf-user mailing list archive at Nabble.com.


RE: CXF with XMLBeans

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

If it is JAXRS that you use then you can use an XmlBeans provider :
http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-XMLBeans

alternatively you can try to use CXF org.apache.cxf.xmlbeans.XmlBeansDataBinding
through JAXRS DataBindingProvider :

<jaxrs:server address="/">

<jaxrs:serviceBeans>
<ref bean="serviceBean"/>
</jaxrs:serviceBeans>

<jaxrs:dataBinding>
<bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding"/>
</jaxrs:dataBinding>
</jaxrs:server>

please try both options and see which one works better for you
Sergey

-----Original Message-----
From: Yong-Loh [mailto:Vasantha_Rapuru@infosys.com]
Sent: Thu 1/7/2010 1:42 AM
To: users@cxf.apache.org
Subject: CXF with XMLBeans
 

Hi,

We are using CXF for creating RESTful webservices and XML beans for data
binding. How do we say CXF to use XML beans for data binding?

Any sample code (using CXF with XML Beans) will be of great help.

Thanks & Regards,
Yong-Loh
-- 
View this message in context: http://old.nabble.com/CXF-with-XMLBeans-tp27055518p27055518.html
Sent from the cxf-user mailing list archive at Nabble.com.