Hi nono,

I just ran a test with a simple echo invocation.
                        // Get the parameter list
                        List<?> parameter = in.getBody(List.class);
                        // Get the operation name
                        String operation = 
(String)in.getHeader(CxfConstants.OPERATION_NAME);
                        Object result = operation + " " + 
(String)parameter.get(0);
                        // Put the result back as a Array
                        Object[] results = new Object[]{result};
                        exchange.getOut().setBody(results);

May be you can share your stack trace and test case here.

 
新春快乐!

--  
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 January 29, 2014 at 6:03:01 PM, nono (yan.w...@db-is.com) wrote:
>  
> Hi Willem,
>  
> sorry. i tried again. does not work for me
> could you please post your workable sample test here?
>  
> Thanks!
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746595.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.  
>  

Reply via email to