WSDL2Java: Converting Elements with Digit on second pos
-------------------------------------------------------

         Key: AXIS2-13
         URL: http://issues.apache.org/jira/browse/AXIS2-13
     Project: Axis2
        Type: Bug
  Components: wsdl  
 Environment: JDK 1.3
AXIS 1_2RC2/3
Win 2000/Win XP
    Reporter: nico pico
 Assigned to: 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

Reply via email to