cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Schlesinger (JIRA)" <j...@apache.org>
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
                 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

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.


Mime
View raw message