You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2008/06/21 03:05:44 UTC

[jira] Commented: (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:comment-tabpanel&focusedCommentId=12606949#action_12606949 ] 

Daniel Kulp commented on CXF-1664:
----------------------------------

The file you posted has the comment wrong, but the@XmlElement declaration is correct.:

    @XmlElement(name = "SelectedOutputFields", namespace = "http://webservice.indexstock.com/imagesearch/2003/07/15/")
    protected ArrayOfString selectedOutputFields;


That said, if I run wsdl2java with that wsdl using a 2.0.7, I get both the comment and the XmlElement fields correct.   Do you have any version of jaxb jars endorsed in your jre/lib/endorsed or something similar?   Other jaxb jars on the classpath?





> 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.