axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand Raghavendran (JIRA)" <>
Subject [jira] Created: (AXIS-2187) code generated by WSDL2JAVA does not compile
Date Tue, 23 Aug 2005 01:56:09 GMT
code generated  by WSDL2JAVA does not compile

         Key: AXIS-2187
     Project: Apache Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.2RC3    
 Environment: WINDOWS XP, JDK 1.4.x, AXIS 1.2RC3, Tomcat server
    Reporter: Anand Raghavendran

When the wsdl file references a schema that has following element defintion for URL:

<xsd:element name="URL" type="URL_Type"/>
<xsd:simpleType name="URL_Type">
           <xsd:restriction base="URL"/>
<xsd:simpleType name="URL">
              <xsd:restriction base="NC">
	<xsd:maxLength value="1024"/>
<xsd:simpleType name="NC">
                 <xsd:restriction base="xsd:string"/>

 WSDL2Java generates code that does not compile properly.  The generated code has URL as a
member variable declaration of type "String_Element" instead of String:

String_Element URL;  

Instead of  

String URL;

As a result, we are needing to manually search and replace every occurence of String_Element
with String in the generated code to make it compile.  Please fix this issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message