cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-963) Incorrect "required" property being added to XMLElement annotation.
Date Mon, 03 Sep 2007 01:25:19 GMT

     [ https://issues.apache.org/jira/browse/CXF-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glen Mazza updated CXF-963:
---------------------------

    Attachment: FindItemsRequestTypeCXF.java

CXF version of generated FindItemsRequestType

> 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: FindItemsRequestTypeCXF.java, FindItemsRequestTypeMetro.java, 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<String> sellerID;
>     @XmlElement(name = "SellerIDExclude", namespace = "urn:ebay:apis:eBLBaseComponents",
required = true)
>     protected List<String> sellerIDExclude;
> Metro:
>     @XmlElement(name = "SellerID")
>     protected List<String> sellerID;
>     @XmlElement(name = "SellerIDExclude")
>     protected List<String> 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.


Mime
View raw message