Try removing dataFormat=PAYLOAD or add camel-jaxb to the classpath On Tue, Nov 26, 2013 at 5:46 PM, tapdur <tapdu...@gmail.com> wrote: > hi all, > > i desesperate to run a "simple" use case wit camel. > <jaxws:client id="CIM-BD" > > address="http://localhost:9008/wservice/services/wsservice-1.0" > serviceClass="WsServiceImpl" /> > > <cxf:cxfEndpoint id="WS-SERVICE-ROUTER" > address="/wsservice-2.0" > endpointName="tns:WsServicePort" > serviceName="tns:WsService" > serviceClass="WsServiceImpl" > wsdlURL="classpath:wsservice.wsdl" > xmlns:tns="http://wservice/v1" > xmlns:data="http://wservice/v1/root"> > > </cxf:cxfEndpoint> > <camelContext trace="true" > xmlns="http://camel.apache.org/schema/spring" > useMDCLogging="true"> > <route> > <from > uri="cxf:bean:WS-SERVICE-ROUTER?dataFormat=PAYLOAD" /> > <to uri="bean:WS-SERVICE?method=debitTransaction" /> > </route> > </camelContext> > > both webservices are genereated by wsdl2java from the same wsdl. > > the initial request is consumed by cxfEndpoint but when i send the message > to the target webservice WS-Service i have > NoTypeConversionAvailableException exception. > > i understand the reaason, the body is of type CxfPayload > No type converter available to convert from type: > org.apache.camel.component.cxf.CxfPayload to the required type ... > > > how to manage the convertion of CxfPayload ? is the a trick to use jaxb2 > generated converter instead of convertBodyTo ? > > many thx > > Regards > Bruno > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/route-cxf-jaxb-webservices-NoTypeConversionAvailableException-tp5743864.html > Sent from the Camel - Users mailing list archive at Nabble.com.
-- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen