Hi Willem, Thanks a ton. You are amazing guy, responds very quickly. I really really appreciate your help on every question. The below example really helps me understanding how to deal with "PAYLOAD" contents.
Thanks again, Trivedi willem.jiang wrote: > > Hi Trivedi, > > I just added an unit test to show how to set the response message for > the PAYLOAD camel-cxf consumer in Camel 1.x branch and Camel trunk. > > You could find the example on the wiki page[1] now. > (Just search the section of "How to deal with the message for the > camel-cxf endpoint in PAYLOAD data format") > > [1] http://cwiki.apache.org/confluence/display/CAMEL/CXF > > Willem > > trivedi kumar b wrote: >> Hi Willem, >> >> I did that as you mentioned: exchange.getOut().setBody(response); >> It is also giving the same error. Attaching the router and log trace for >> your reference. >> >> Thanks, >> Trivedi >> Router: http://www.nabble.com/file/p24215511/XDSbRegistryRoute.java >> XDSbRegistryRoute.java >> Trace: http://www.nabble.com/file/p24215511/log_trace.txt log_trace.txt >> >> >> willem.jiang wrote: >>> Hi, >>> >>> If you want the set the response into the exchange you need to set the >>> out message body, just like this. >>> exchange.getOut().setBody(response); >>> >>> BTW, there are lots of camel-cxf refactoring works are done in Camel >>> 2.0. I don't know which version of camel are you using, can you tell me >>> the version number and show me the stack trace? >>> >>> Willem >>> >>> trivedi kumar b wrote: >>>> Hi, >>>> >>>> I am trying to create Webservices using CXF and "PAYLOAD" as >>>> dataformat. >>>> I >>>> am facing the issue with returning the response from the >>>> webservice..i.e >>>> only with PAYLOAD OPTION. I am keeping the response thing in the >>>> exchange.getIn().setBody(response).. this is giving me the below error: >>>> >>>> Message org.apache.cxf.message.MessageImpl not supported in >>>> Payload >>>> mode Routing. >>>> >>>> Can someone help me how/what needs to be set in the exchange object for >>>> PAYLOAD option. >>>> >>>> Thanks, >>>> Trivedi >>>> >>>> >>> >>> >> > > > -- View this message in context: http://www.nabble.com/issue-with-CXF---Payload-tp24206410p24222319.html Sent from the Camel - Users mailing list archive at Nabble.com.