Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 94164 invoked from network); 24 Jan 2010 13:03:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2010 13:03:56 -0000 Received: (qmail 20689 invoked by uid 500); 24 Jan 2010 13:03:55 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 20583 invoked by uid 500); 24 Jan 2010 13:03:55 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 20573 invoked by uid 99); 24 Jan 2010 13:03:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jan 2010 13:03:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bimargulies@gmail.com designates 74.125.78.150 as permitted sender) Received: from [74.125.78.150] (HELO ey-out-1920.google.com) (74.125.78.150) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jan 2010 13:03:46 +0000 Received: by ey-out-1920.google.com with SMTP id 3so253619eyh.32 for ; Sun, 24 Jan 2010 05:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JxXHrTsFTvHYhg4QQI08SbLR+iFgYIlC6GcdloXKwNc=; b=JDQI3XWcKdxn3dBBuQXArXFixDcu7Au/2jYOBaysowGuNjv5pf9iGRthTof6ooBJvF JGraLQZef8euYVxoEWyAV/y/v52hficH4lH9okHYehtw2YLMJLXsO5QGmgbuK4KGyrtF woBYPZrvgoK2hWT3NZQk6QJLuG4tXE456sXzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=NIsFpq1pEmJ4VG+71PBruDNJCYOrsQbQ+o+YWNcuKTVI7UZw7EgTRYbUAH9WY6Lc4y ZYb01cFDjqBABOrJQBdVilq8b3ikxbGdquOAXBTzXQh1LLW/QSN5NZ5EzBXiO8zZDsLD n/6SCmGUkMfAPNjasiHq+IMPrcBTRxyaZ9+AQ= MIME-Version: 1.0 Received: by 10.216.86.195 with SMTP id w45mr550143wee.82.1264338204587; Sun, 24 Jan 2010 05:03:24 -0800 (PST) In-Reply-To: <538C47C81A37C04CA9E825DBA106227702147D7E@tr25.Adm.Traen.com> References: <538C47C81A37C04CA9E825DBA106227702147D7B@tr25.Adm.Traen.com> <61b5d9411001240445o6e3cf124p83bc4aa0974de7e3@mail.gmail.com> <538C47C81A37C04CA9E825DBA106227702147D7E@tr25.Adm.Traen.com> Date: Sun, 24 Jan 2010 08:03:24 -0500 Message-ID: <61b5d9411001240503vdc84b0dge28fa242a8f9dcf0@mail.gmail.com> Subject: Re: XFire to CXF - wrapping arrays From: Benson Margulies To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Did you configure CXF with Aegis or JAXB? this looks like you are getting the JAXB sort of array, or Aegis with the new 'flat' option turned on (which I thought was off by default). On Sun, Jan 24, 2010 at 7:58 AM, Christian Landbo Frederiksen wrote: > XFire is setup using defaults, so I guess that would be Aegis yes. > > > -----Original Message----- > From: Benson Margulies [mailto:bimargulies@gmail.com] > Sent: 24. januar 2010 13:45 > To: users@cxf.apache.org > Subject: Re: XFire to CXF - wrapping arrays > > Are you sure you were using JAXB and not Aegis with XFire? > > On Sun, Jan 24, 2010 at 4:07 AM, Christian Landbo Frederiksen > wrote: >> I am upgrading an old XFire webservice to the latest edition of CXF. >> >> >> >> I am hoping I can do this with no changes to the web service interface >> (WSDL). >> >> >> >> I my XFire edition methods that return arrays resulted in a type e.g: >> ArrayOfErrorCode: >> >> >> >> =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BAD_INPUT >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0OTHER_ERROR >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0... >> >> >> >> In CXF I don't get that wrapping: >> >> >> >> =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 BAD_INPUT >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 OTHER_ERROR >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0.... >> >> >> >> >> >> I have tried wrapping the response in an ErrorCodes class that contains >> the array: >> >> >> >> public final class ErrorCodes { >> >> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 private ErrorCode[] ErrorCode; >> >> >> >> =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BAD_INPUT >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0OTHER_ERROR >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 .... >> >> >> >> Almost there but notice the 'e' is not an 'E'. >> >> >> >> So I added >> >> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 @XmlElement(namespace=3D"", name=3D"E= rrorCode") >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 private ErrorCode[] ErrorCode; >> >> >> >> But then I get two elements in the response: >> >> >> >> =C2=A0 =C2=A0 =C2=A0> xmlns:ns2=3D"http://ws.brugerinformation.dk/"> >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BAD_INPUT >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OTHER_ERROR >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0BAD_INPUT >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OTHER_ERROR >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 .... >> >> >> >> Which seems pretty odd to me. >> >> >> >> Does anybody have any idea how to solve this? Perhaps there is a JAXB >> annotation or a CXF configuration? >> >> >> >> /Christian >> >> >> >> >> >> >