You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Raymond de Hond <ra...@gmail.com> on 2018/10/22 06:59:29 UTC

question about contract-first approach using PAYLOAD

Hi,

I am strugling to get my camel route op and running using the
dataFormat=PAYLOAD format.

In order to get rid of the "
org.apache.camel.NoTypeConversionAvailableException" error I used:
<convertBodyTo
type="java.lang.String"/>

This means -of course- that I get my xml input as a string into by mapping
bean.
My question(s): Is this the right approach and if so, what if I want to
call another webservice after my first mapping. Does the return value of my
first mapping has to be of type String as well? Or can I return the right
java object directly for my second webservice call which means that camel
will convert it implicitly to a cxfPayload object?

Regards,

Raymond