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 2005/03/15 23:59:27 UTC
[jira] Commented: (AXIS-1846) WSDL2Java: Converting Elements with Digit on second pos
[ http://issues.apache.org/jira/browse/AXIS-1846?page=comments#action_60905 ]
Davanum Srinivas commented on AXIS-1846:
----------------------------------------
Can u please upload the complete wsdl.
> WSDL2Java: Converting Elements with Digit on second pos
> -------------------------------------------------------
>
> Key: AXIS-1846
> URL: http://issues.apache.org/jira/browse/AXIS-1846
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Environment: JDK 1.3
> AXIS 1_2RC2/3
> Win 2000/Win XP
> Reporter: nico pico
> Assignee: Davanum Srinivas
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira