You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2013/11/27 09:33:29 UTC
Re: route cxf jaxb webservices -> NoTypeConversionAvailableException
Try removing dataFormat=PAYLOAD or add camel-jaxb to the classpath
On Tue, Nov 26, 2013 at 5:46 PM, tapdur <ta...@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: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: route cxf jaxb webservices ->
NoTypeConversionAvailableException
Posted by tapdur <ta...@gmail.com>.
thx Claus i will try but it found a wotrh turn around like
<from( cxf:cxfEndpoint...)
<unmarshal ...>
<to jaxws:client... />
<marshal ...>
ALL works fine except i receive an empty body, how to return the marshaled
response to the cxf:cxfEnpoint message ? always in a dsl way like <Inout />
? but i don t know where to use it.
any idea ?
thx
bruno
--
View this message in context: http://camel.465427.n5.nabble.com/route-cxf-jaxb-webservices-NoTypeConversionAvailableException-tp5743864p5743936.html
Sent from the Camel - Users mailing list archive at Nabble.com.