On 12/15/10 4:05 AM, Kazi, Iftekhar wrote:
Hi,
Am a newbie and have some problems with the cxf endpoint in a Camel
Route. Have created JAXB object definitions using xjc and created a
REST Interface using cxf. When I deploy the implementation in Camel
and use the code as outlined in the Part 4 of the ReportIncident
Tutorial [using a producer to send a message to direct:start], all
works well. However, when trying to use cxfrs as defined in the cxfrs
tutorial/page, I get a Null pointer exception.
Can you show me the stack trace and you camel route ?
Is there an example for implementing REST routes in camel ? I need to
proxy a REST Web Service to receive the message, enrich it and then
send it on to a external SOAP Web Service and enrich the message
along the way. Any help will be appreciated. Thanks
AS CXF support JAXWS and JAXRS at the same time, it should not be
difficult to convert a REST request into a SOAP request if they are
share the same SEI.
But if you want to create a common REST proxy do this job, I don't think
current CXFRS and CXF component can meet with your requirement.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang