Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 093E11083D for ; Wed, 29 Jan 2014 06:49:25 +0000 (UTC) Received: (qmail 93372 invoked by uid 500); 29 Jan 2014 06:49:23 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 92068 invoked by uid 500); 29 Jan 2014 06:49:16 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 85900 invoked by uid 99); 28 Jan 2014 21:08:39 -0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Date: Tue, 28 Jan 2014 13:08:13 -0800 (PST) From: nono To: users@camel.apache.org Message-ID: <1390943293918-5746573.post@n5.nabble.com> In-Reply-To: References: <1390735412574-5746478.post@n5.nabble.com> <1390821926538-5746496.post@n5.nabble.com> <1390851903713-5746509.post@n5.nabble.com> <1390871728334-5746513.post@n5.nabble.com> <1390905958942-5746531.post@n5.nabble.com> Subject: Re: camel-cxf , return complex type object problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.