Hi, You are using the camel-http component to send the request to the back end service. That is reason that Camel tries to turn the RealType into a stream. You may need to use the camel-cxf component to send the request if you want to use the RealType object directly.
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Wednesday, August 28, 2013 at 8:21 PM, chengy wrote: > hi, I want to build a router like this: > from("cxf://http:localhost:8091/proxyservice?serviceClass=xxx.ProxyClass&dataFormat=POJO").bean(new > MyConvertBean()).to("http://localhost:8088/realservice"); > > where MyConvertBean has a convert method: > public RealType convert(ProxyType pt) { > return new RealType(); > } > > the router can't invoke real webservice correct,it seems try to convert > RealType to Inputstream and there is no typeconverter.And other,when the > proxyservice has a usernam token security but realservice need https,need i > config all the interceptors? > > what is the appropriate soluting?Thanks! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/use-camel-proxy-webservice-tp5738154.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).