You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2007/09/28 14:53:56 UTC

[jira] Updated: (AXIS-1846) WSDL2Java: Converting Elements with Digit on second pos

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

Davanum Srinivas updated AXIS-1846:
-----------------------------------

    Assignee:     (was: Davanum Srinivas)

> WSDL2Java: Converting Elements with Digit on second pos
> -------------------------------------------------------
>
>                 Key: AXIS-1846
>                 URL: https://issues.apache.org/jira/browse/AXIS-1846
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>         Environment: JDK 1.3
> AXIS 1_2RC2/3
> Win 2000/Win XP
>            Reporter: nico pico
>
> Hi,
> if an element has a digit on the second position and a capitol letter on the first
> (e.g. W2SKR) all attributes are lost in the WSDL and the first letter is transformed to lower case:
> input/description in javaclass:
> ...
> elemField = new org.apache.axis.description.ElementDesc();
> elemField.setFieldName("W2SKR");
> elemField.setXmlName(new javax.xml.namespace.QName("", "W2SKR"));
> elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
> elemField.setMinOccurs(0);
> typeDesc.addFieldDesc(elemField);
> ...
> output:
> ...
> <element name="w2SKR" 
> nillable="true" type="xsd:string"/>
> ...
> If the elementname is changed to start with a small letter everything is fine:
> input:
> elemField = new org.apache.axis.description.ElementDesc();
> elemField.setFieldName("w2SKR");
> elemField.setXmlName(new javax.xml.namespace.QName("", "w2SKR"));
> elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
> elemField.setMinOccurs(0);
> typeDesc.addFieldDesc(elemField);
> output:
> <element maxOccurs="1" minOccurs="0" name="w2SKR" type="xsd:string"/>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org