You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Glen Mazza (JIRA)" <ji...@apache.org> on 2007/09/03 03:23:19 UTC
[jira] Updated: (CXF-963) Incorrect "required" property being added
to XMLElement annotation.
[ 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<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.