Hi I have a root that looks like this:
<route id="oneRoute"> <from uri="file:///Inbox?noop=true&fileName=file.txt&consumer.delay=10000" /> <split streaming="true" parallelProcessing="true"> <tokenize token="\n"/> <unmarshal> <csv delimiter="," /> </unmarshal> <to uri="bean:csvToBean?method=toBean"/> <log message="OBJ: ${body}"/> <setHeader headerName="CamelHttpMethod"> <constant>GET</constant> </setHeader> <recipientList> <simple>http://localhost:7001/wsUrl?param=${body.prop1}&param=${body.prop2}</simple> </recipientList> <log message="We get the body ${body}"/> </split> <log message="Finished oneRoute"/> </route> This reads a csv file line by line, parses each line to a class and then try to call to a WS using some of its class properties as params. Calling the WS I get this exception: org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value: MyClass [prop1=str1, prop2=str2] of type: myPackage.MyClass on: fileName.txt. Caused by: No type converter available to convert from type: myPackage.MyClass to the required type: java.io.InputStream with value MyClass MyClass [prop1=str1, prop2=str2]. Exchange[fileName.txt]. Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: myPackage.MyClass to the required type: java.io.InputStream with value MyClass [prop1=str1, prop2=str2]] MyClass is a simple java class wich implements serializable. I don't understand why is asking me for a InputStream when I'm using a serializable Object. Any idea? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Problem-in-WS-url-with-params-tp5751464.html Sent from the Camel - Users mailing list archive at Nabble.com.