camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tapdur <tapdu...@gmail.com>
Subject route cxf jaxb webservices -> NoTypeConversionAvailableException
Date Tue, 26 Nov 2013 16:46:46 GMT
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.

Mime
View raw message