I am trying to use the http4 component to send information to a web service. I keep getting an error on the http4 endpoint:
SendProcessor.java:102 - >>> Endpoint[http4://localhost:9090/service?name=Jay] Exchange[null] CamelLogger.java:186 - Failed delivery for exchangeid: <ID-......> On delivery attempt: 0 caught: org.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value: <the accurate toString of my bean> of type com.biz.MyBean on: null. Caused by: No type converter available to convert from type: com.biz.MyBean to the required type: java.io.InputStream with value <the accurate toString of my bean>. Exchange[null]. Caused by: [org.apache.camel.NoTypeConvertsionAvailableException My route looks like this: <camel:from uri="file://c:/indir/"/> <camel:transacted/> <camel:bean ref="myBean" method="fromXML"/> <== loads the values in the bean via xpath <camel:setHeader headerName="CamelHttpMethod"><camel:constant>GET</camel:constant><camel:setHeader> <camel:to uri="http4://localhost:9090/myservice?name=mrx"/> I know that seems like an odd route/call to the service, but this was to troubleshoot. I will eventually call the service with variables in the header, but I'll burn that bridge when i come to it. If I replace the http4 with stream:out everything works great. Any thoughts about what I am doing wrong? Why is the component trying to convert my bean to an input stream (as if it's trying to do more than just call out to the service with the provided parameters)?? Thanks for any insight. -J -- View this message in context: http://camel.465427.n5.nabble.com/http4-component-tp4854058p4854058.html Sent from the Camel - Users mailing list archive at Nabble.com.