Hi, I just did a simple test, setting the result into an Object Array works as expect.
-- 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 2:49:25 PM, nono (yan.w...@db-is.com) wrote: > > Hi > It worked with List , but failed with Array. > > > ArrayList pls = new ArrayList(); > for (String s : names) { > Person p = new Person(); > p.setName(s); > pls.add(p); > } > ArrayList wrapperList = new ArrayList(); > wrapperList.add(pls); > Object[] objs = new Object[]{pls}; > exchng.getOut().setBody(objs); > // exchng.getOut().setBody(wrapperList); > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746573.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >