cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Schlesinger (JIRA)" <>
Subject [jira] Created: (CXF-1664) wsdl2java appears to have a length limit for @XmlElement names
Date Fri, 20 Jun 2008 22:25:45 GMT
wsdl2java appears to have a length limit for @XmlElement names

                 Key: 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


Generate sources using Maven.

<s:element name="FreeTextSearch">
<s:element minOccurs="0" maxOccurs="1" name="SelectedOutputFields" type="tns:ArrayOfString"/>

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:
*  element name="SelectedOutputField" type="{}ArrayOfString"

and in the class, the relevant class variable is declared as:

@XmlElement(name = "SelectedOutputField", namespace = "")
    protected ArrayOfString selectedOutputFields;

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.

View raw message