camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: webservice response
Date Wed, 30 Apr 2008 15:16:26 GMT
Hi Evgeny,

Yes , you need to return a list or a array object  as a result to the 
cxf consumer in Camel 1.3.
If you look for CXF Invoker interface's[1] implementation,  you will 
find out all the result are wrapped with a MessageContentsList object in 
the implementations.
Current CXF outgoing interceptor chains just handles the message with 
List object.

I can add a check point in the CamelInvoker[2], to make sure the 
CamelInvoker will return a List object even the out message body is not 
a list or array object.
So you could just set the out message's body with the result directly in 
your processor.



pevgen wrote:
> Hi.
> I solve my problem, but i think this is a strange decision.
> in the method "process"
>>       public void process(Exchange exchange) throws Exception {
>>         MessageContentsList mcl = new MessageContentsList();
>>         mcl.add(0,"my response 2");
>>         exchange.getOut().setBody(mcl);
> Can anybody tell me other decision ?
> Thanks
> Evgeny

View raw message