cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sbery...@progress.com>
Subject RE: CXF with XMLBeans
Date Thu, 07 Jan 2010 11:03:28 GMT

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.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message