Hi It worked with List , but failed with Array.
ArrayList<Person> pls = new ArrayList<Person>(); 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.