Hi Willem,
Thanks for the reply and CNY greetings.
List and array wrapper are both working, i just unisntall and install bundle
on fuse esb and test again. it is ok now :-)
List<String> names = (List<String>) msgList.get(0);
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[] wrapperArray = new Object[]{pls};
exchng.getOut().setBody(wrapperArray);
// exchng.getOut().setBody(wrapperList);
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-cxf-return-complex-type-object-problem-tp5746478p5746636.html
Sent from the Camel - Users mailing list archive at Nabble.com.