Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 3833 invoked from network); 30 Nov 2007 18:18:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 18:18:10 -0000 Received: (qmail 14673 invoked by uid 500); 30 Nov 2007 18:17:57 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 14460 invoked by uid 500); 30 Nov 2007 18:17:57 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 14451 invoked by uid 99); 30 Nov 2007 18:17:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 10:17:57 -0800 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of bim2007@basistech.com does not designate 199.88.205.99 as permitted sender) Received: from [199.88.205.99] (HELO mail.basistech.com) (199.88.205.99) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 18:18:00 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JAXWS + JAXB + CXF's auto-wrapper feature Date: Fri, 30 Nov 2007 13:17:35 -0500 Message-ID: In-Reply-To: <200711301313.15375.dkulp@apache.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JAXWS + JAXB + CXF's auto-wrapper feature Thread-Index: AcgzfK56sy2LiqO5T+SmXPXX4jrq9AAAFhSQ References: <200711301313.15375.dkulp@apache.org> From: "Benson Margulies" To: "Daniel Kulp" , X-Virus-Checked: Checked by ClamAV on apache.org 1) So, this legitimatized my JIRA calling for preferring WebParam to XmlRootElement. 2) This sure is an argument for Bare. JAX-WS doesn't touch elementForm, so all these people who want to control the elementForm are going to stay sad. > -----Original Message----- > From: Daniel Kulp [mailto:dkulp@apache.org]=20 > Sent: Friday, November 30, 2007 1:13 PM > To: cxf-dev@incubator.apache.org > Cc: Benson Margulies > Subject: Re: JAXWS + JAXB + CXF's auto-wrapper feature >=20 >=20 > Just FYI: the JAXWS spec specifically avoids any mention of=20 > having XmlRootElement on beans for the java first case,=20 > probably due to the=20 > issues you are seeing. =20 >=20 > The spec REALLY want's all the top level element names and such to be=20 > controlled with the JWS/JAXWS annotions and not the jaxb=20 > annotations. =20 > Thus, we need to use that information instead and more or=20 > less ignore the XmlRootElement annotation when we can. =20 >=20 > If the type has a XmlRootElement and an XmlType with a name=20 > attribute,=20 > we're kind of OK as the type is non-anonymous and we can=20 > point to it. =20 > However, if the type has no name attribute, it does blow=20 > things up pretty badly and is definitely outside the stuff=20 > the JAX-WS tck would be testing. >=20 > Dan >=20 >=20 > On Sunday 25 November 2007, Benson Margulies wrote: > > I have a little more information on this to offer. > > > > Leaving the current schema generation alone, I end up with=20 > a complex=20 > > type containing two elements refs to the same element (one with=20 > > maxOccurs and minOccurs). > > > > As an experiment, I fed this to wsdl2java, which told me=20 > that this was=20 > > very sad and encouraged me to 'apply a customization to fix the=20 > > names'. > > > > Well, OK, then, that would seem to favor my theory that=20 > auto-generated=20 > > wrapper types should favor @WebParam names over XmlRootElement refs. >=20 >=20 >=20 > -- > J. Daniel Kulp > Principal Engineer > IONA > P: 781-902-8727 C: 508-380-7194 > daniel.kulp@iona.com > http://www.dankulp.com/blog >=20