git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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