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 "Anand Raghavendran (JIRA)" <ax...@ws.apache.org> on 2005/08/23 03:56:09 UTC

[jira] Created: (AXIS-2187) code generated by WSDL2JAVA does not compile

code generated  by WSDL2JAVA does not compile
---------------------------------------------

         Key: AXIS-2187
         URL: http://issues.apache.org/jira/browse/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>
<xsd:simpleType name="URL">
              <xsd:restriction base="NC">
	<xsd:maxLength value="1024"/>
              </xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="NC">
                 <xsd:restriction base="xsd:string"/>
</xsd:simpleType>

 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Anand Raghavendran (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2187?page=all ]

Anand Raghavendran updated AXIS-2187:
-------------------------------------

    Attachment: ContactInfo_Type.java

Generated java file that does not compile

> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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
>  Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> 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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Anand Raghavendran (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2187?page=comments#action_12319748 ] 

Anand Raghavendran commented on AXIS-2187:
------------------------------------------

Thak you very much.  It worked!  When will these fixes make it into the official release?  Please consider these issue closed.

> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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
>  Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> 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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Anand Raghavendran (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2187?page=comments#action_12319715 ] 

Anand Raghavendran commented on AXIS-2187:
------------------------------------------

I am using the latest release 1.2.1 and still having the same issues.  

Are you suggesting that I build axis from the latest src in cvs repository?   Please send me any useful link that can walk me through this process.  I have never done that before.   Or is a there a binary version of the latest CVS axis that I can readily download?

> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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
>  Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> 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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2187?page=comments#action_12319682 ] 

Venkat Reddy commented on AXIS-2187:
------------------------------------

Please use the latest Axis latest CVS. Using the latest Axis code, I got the following :

    private java.lang.String URL;
    public ContactInfo_Type(
           java.lang.String[] CSPhoneNum,
           java.lang.String contactName,
           java.lang.String URL) {
           this.CSPhoneNum = CSPhoneNum;
           this.contactName = contactName;
           this.URL = URL;
    }

- venkat


> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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
>  Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> 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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2187?page=all ]
     
Davanum Srinivas resolved AXIS-2187:
------------------------------------

    Resolution: Fixed

marking as already fixed.

> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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
>  Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> 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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2187?page=comments#action_12319716 ] 

Davanum Srinivas commented on AXIS-2187:
----------------------------------------

nightly is here - http://cvs.apache.org/dist/axis/nightly/


> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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
>  Attachments: ContactInfo_Type.java, ContactService.wsdl
>
> 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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2187) code generated by WSDL2JAVA does not compile

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2187?page=comments#action_12319669 ] 

Davanum Srinivas commented on AXIS-2187:
----------------------------------------

Please upload complete wsdl

thanks,
dims

> code generated  by WSDL2JAVA does not compile
> ---------------------------------------------
>
>          Key: AXIS-2187
>          URL: http://issues.apache.org/jira/browse/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>
> <xsd:simpleType name="URL">
>               <xsd:restriction base="NC">
> 	<xsd:maxLength value="1024"/>
>               </xsd:restriction>
> </xsd:simpleType>
> <xsd:simpleType name="NC">
>                  <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
>  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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira