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] Created: (CXF-963) Incorrect "required" property being added
to XMLElement annotation.
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.
[jira] Updated: (CXF-963) Incorrect "required" property being added
to XMLElement annotation.
Posted by "Glen Mazza (JIRA)" <ji...@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: FindItemsRequestTypeMetro.java
Metro version of 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.
[jira] Closed: (CXF-963) Incorrect "required" property being added
to XMLElement annotation.
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp closed CXF-963.
---------------------------
Resolution: Invalid
Fix Version/s: Invalid
Assignee: Daniel Kulp
> 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
> Assignee: Daniel Kulp
> Priority: Minor
> Fix For: Invalid
>
> 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.
[jira] Updated: (CXF-963) Incorrect "required" property being added
to XMLElement annotation.
Posted by "Glen Mazza (JIRA)" <ji...@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: 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.
[jira] Commented: (CXF-963) Incorrect "required" property being
added to XMLElement annotation.
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524805 ]
Glen Mazza commented on CXF-963:
--------------------------------
Never mind! I was wrong on this point: required *is* a valid property for this annotation.
See: http://www.nabble.com/Re%3A-where-is-%22required%22-property-added-to-XMLElement-annotation--p12482851.html
Please close this as invalid. Thanks!
Glen
> 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.
[jira] Updated: (CXF-963) Incorrect "required" property being added
to XMLElement annotation.
Posted by "Glen Mazza (JIRA)" <ji...@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<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.