Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 68490 invoked from network); 15 Dec 2006 02:41:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2006 02:41:43 -0000 Received: (qmail 80847 invoked by uid 500); 15 Dec 2006 02:41:51 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 80811 invoked by uid 500); 15 Dec 2006 02:41:50 -0000 Mailing-List: contact cxf-issues-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-issues@incubator.apache.org Received: (qmail 80802 invoked by uid 99); 15 Dec 2006 02:41:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 18:41:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Dec 2006 18:41:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53AEC7140F6 for ; Thu, 14 Dec 2006 18:41:22 -0800 (PST) Message-ID: <31368590.1166150482339.JavaMail.jira@brutus> Date: Thu, 14 Dec 2006 18:41:22 -0800 (PST) From: "tli (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-305) Unsupport handling of schema which will have @XmlElementRef & JAXBElement in type code generated by JAXB In-Reply-To: <14272643.1166090966108.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/CXF-305?page=comments#action_12458662 ] tli commented on CXF-305: ------------------------- The above java type class generated by JAXB is correct, but if the wsdl operation is Wrap type, our cxf rt can't handle correct. > Unsupport handling of schema which will have @XmlElementRef & JAXBElement in type code generated by JAXB > -------------------------------------------------------------------------------------------------------- > > Key: CXF-305 > URL: http://issues.apache.org/jira/browse/CXF-305 > Project: CXF > Issue Type: Bug > Components: JAXB Databinding > Affects Versions: 2.0 > Reporter: tli > Fix For: 2.0 > > > When a element in a anoymous complex type specified minOccurs="0" and nillable="true", > the generated type code use JAXBElement not String > Schema Sample: > > > > > > > > > > > type="xs:base64Binary" /> > > > > JAXBCode generated: > @XmlElementRef(name = "s", namespace = "http://xmlsoap.org/Ping", type = JAXBElement.class) > protected JAXBElement s; > /** > * Gets the value of the s property. > * > * @return > * possible object is > * {@link JAXBElement }{@code <}{@link String }{@code >} > * > */ > public JAXBElement getS() { > return s; > } > /** > * Sets the value of the s property. > * > * @param value > * allowed object is > * {@link JAXBElement }{@code <}{@link String }{@code >} > * > */ > public void setS(JAXBElement value) { > this.s = ((JAXBElement ) value); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira