You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Philip Schlesinger (JIRA)" <ji...@apache.org> on 2008/06/24 01:53:45 UTC

[jira] Resolved: (CXF-1664) wsdl2java appears to have a length limit for @XmlElement names

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

Philip Schlesinger resolved CXF-1664.
-------------------------------------

    Resolution: Fixed

Yep, it was a jaxb version issue.  Updating fixed it.  Daniel, thx for the help.

> wsdl2java appears to have a length limit for @XmlElement names
> --------------------------------------------------------------
>
>                 Key: CXF-1664
>                 URL: https://issues.apache.org/jira/browse/CXF-1664
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime, Soap Binding, WS-* Components
>    Affects Versions: 2.0.7
>         Environment: Kubuntu 7.10, Eclipse 3.3.2, IndexStock WSDL, Maven 2.0.7, Java version: 1.5.0_13, OS name: "linux" version: "2.6.22-15-generic" arch: "i386"
>            Reporter: Philip Schlesinger
>         Attachments: FreeTextSearch.java
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> WSDL: http://webservices.indexstock.com/ImageSearch/2003/07/15/imagesearch.asmx?WSDL
> Generate sources using Maven.
> {code}
> ....
> <s:element name="FreeTextSearch">
> ...
> <s:element minOccurs="0" maxOccurs="1" name="SelectedOutputFields" type="tns:ArrayOfString"/>
> ...
> {code}
> Note the "s" at the end of "SelectedOutputFields".  The generated code for this function will be attached to this bug ticket after I create it.  You'll see that the comment section shows:
> {code}
> *  element name="SelectedOutputField" type="{http://webservice.indexstock.com/imagesearch/2003/07/15/}ArrayOfString" minOccurs="0"/>
> {code}
> and in the class, the relevant class variable is declared as:
> {code}
> @XmlElement(name = "SelectedOutputField", namespace = "http://webservice.indexstock.com/imagesearch/2003/07/15/")
>     protected ArrayOfString selectedOutputFields;
> {code}
> This of course violates the WSDL.
> It would appear that there is a length limitation.
> Is IndexStock not following some standard by using a 20 character name?  If so, would you mind providing a link to the exact spec where it says the limit is 19 characters?
> Otherwise, please permit 20+ character names for XmlElements.
> Thx, Phil

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.