Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 26040 invoked from network); 3 Sep 2007 01:23:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 01:23:50 -0000 Received: (qmail 3321 invoked by uid 500); 3 Sep 2007 01:23:45 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 3287 invoked by uid 500); 3 Sep 2007 01:23:45 -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 3276 invoked by uid 99); 3 Sep 2007 01:23:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Sep 2007 18:23:45 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Mon, 03 Sep 2007 01:23:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5F35D714208 for ; Sun, 2 Sep 2007 18:23:19 -0700 (PDT) Message-ID: <2541260.1188782599387.JavaMail.jira@brutus> Date: Sun, 2 Sep 2007 18:23:19 -0700 (PDT) From: "Glen Mazza (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Updated: (CXF-963) Incorrect "required" property being added to XMLElement annotation. In-Reply-To: <1945026.1188782599109.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 [ https://issues.apache.org/jira/browse/CXF-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Glen Mazza updated CXF-963: --------------------------- Attachment: ShoppingService.wsdl eBay WSDL > Incorrect "required" property being added to XMLElement annotation. > ------------------------------------------------------------------- > > Key: CXF-963 > URL: https://issues.apache.org/jira/browse/CXF-963 > Project: CXF > Issue Type: Bug > Affects Versions: 2.0.1 > Reporter: Glen Mazza > Priority: Minor > Attachments: ShoppingService.wsdl > > > Hello, for the eBay WSDL (attachment #1), the generated FindItemsRequestType (attachment #2) is adding a "required=true" property to the @XMLElement annotation for sellerID and sellerIDExclude (these two elements have maxoccurs="unbounded" in the WSDL.) However, that property doesn't seem to exist for that annotation[1]. Also puzzling is why "required=true" needs to be added anyway because these two fields are optional. For reference, attachment #3 has the GlassFish Metro-generated version of FindItemsRequestType without this property to the annotation. Using the Ant script here[2] to generate the clients. > CXF: > @XmlElement(name = "SellerID", namespace = "urn:ebay:apis:eBLBaseComponents", required = true) > protected List sellerID; > @XmlElement(name = "SellerIDExclude", namespace = "urn:ebay:apis:eBLBaseComponents", required = true) > protected List sellerIDExclude; > Metro: > @XmlElement(name = "SellerID") > protected List sellerID; > @XmlElement(name = "SellerIDExclude") > protected List sellerIDExclude; > [1] https://jax-ws.dev.java.net/jax-ws-ea3/docs/annotations.html#4.4%20javax.xml.bind.annotation.XmlElement%7Coutline > [2] http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1 (step #5) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.