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 "Dr. Friedemann Weik (JIRA)" <ax...@ws.apache.org> on 2006/03/06 16:54:31 UTC

[jira] Created: (AXIS-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
------------------------------------------------------------------------------

         Key: AXIS-2424
         URL: http://issues.apache.org/jira/browse/AXIS-2424
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.3    
 Environment: Windows 2000, Java 1.4.2_04
    Reporter: Dr. Friedemann Weik


A Java class containing definitions like:
  private int[] arrPossibleDestPenalties;
  private java.lang.Boolean bStationBefore;
without the code generated by WSDL2Java creates a wsdl with
     <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
     <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>

Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
  private int[] arrPossibleDestPenalties;
  private java.lang.Boolean BStationBefore;

thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
     <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
     <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>

Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
  private java.lang.Integer arrPossibleDestPenalties;
  private java.lang.Boolean bStationBefore;

Which means:
- a pure Java file with Java2WSDL and WSDL2Java will modify the names
- a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Olaf Danne (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12376188 ] 

Olaf Danne commented on AXIS-2424:
----------------------------------

You can now find two more files:
- Axis_2424_Test.java : the "endpoint interface" (hope this is what you mean), defining two test methods
- Axis_2424_TestImpl.java : contains the implementation of these methods. Note that these are dummy methods only (not a fully functional soap service), we only want to show the Java2WSDL / WSDL2Java errors.

Another information might be useful for you: We went through the Axis1.3 source files (taken from axis-src-1_3.zip) and found a way to avoid the error with the arrays of primitive data types: 
In the class 
src\org\apache\axis\wsdl\fromJava\Types.java
we changed line 414:

if ((qname == null)    // before change
if ((qname == null) || (type.getName().startsWith("["))    // after change

With this additional check it is ensured that the methods to build the xml expressions for the arrays of primitive data types (like "ArrayOf_xsd_int" for the type int[], where type.getName() is "[I") are called in the correct way, which was not the case before. This might be a quick and dirty solution, but it works, and it does not seem to have any side effects (we compared the resulting wsdl's, and only the relevant lines were affected).

Regards,
Olaf

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Dies Koper (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12377204 ] 

Dies Koper commented on AXIS-2424:
----------------------------------

Regarding the following:

> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names 

The actual (private) field names of Javabeans are irrelevant. The property names are inferred from the getter/setter names. See section 8.8 Capitalization of inferred names.

getter "getBStationBefore" belongs to a property with the name "BStationBefore".

I'm glad to hear you found a way around the other problem.

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip, Axis_2424_Test.java, Axis_2424_TestImpl.java
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Dies Koper (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12375527 ] 

Dies Koper commented on AXIS-2424:
----------------------------------

Could you attach a file to reproduce the first step (Endpoint interface and JavaBean?)?
Thanks.

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik

>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Dies Koper (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12378356 ] 

Dies Koper commented on AXIS-2424:
----------------------------------

I was referring to the Javabeans spec, section 8.8.
It is always best to use meaningful names for your properties (and variables, methods, classes, etc.) anyway. Good luck!

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip, Axis_2424_Test.java, Axis_2424_TestImpl.java
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Olaf Danne (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12377754 ] 

Olaf Danne commented on AXIS-2424:
----------------------------------

Ok, we found a few links regarding "Capitalization of inferred names" in which the problem is illustrated. So we should better avoid using property names like "bStationBefore" in future. Thanks for your help!

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip, Axis_2424_Test.java, Axis_2424_TestImpl.java
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

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

Olaf Danne updated AXIS-2424:
-----------------------------

    Attachment: Axis_2424.zip

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

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

Olaf Danne updated AXIS-2424:
-----------------------------

    Attachment: Axis_2424_TestImpl.java

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip, Axis_2424_Test.java, Axis_2424_TestImpl.java
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

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

Olaf Danne updated AXIS-2424:
-----------------------------

    Attachment: Axis_2424_Test.java

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip, Axis_2424_Test.java, Axis_2424_TestImpl.java
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Dies Koper (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12376130 ] 

Dies Koper commented on AXIS-2424:
----------------------------------

Thanks. Could you include the endpoint interface so that I can try to reproduce the problem?

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Dr. Friedemann Weik (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12375525 ] 

Dr. Friedemann Weik commented on AXIS-2424:
-------------------------------------------

This bug has a major impact in such a way, that it happens not only when updating a Java-source file. There I can correct the created WSDL. But if you ask the Web-Service to provide its WSDL, there is an implicit call to Java2WSDL on the Java classes, belonging to the service and stored in the JAR-file. This implicit call to Java2WSDL again gives a property of the type Integer instead of int[]. Using that Java-class in a SOAP-client will produce an IllegalArgumentException, since the received int[] does not fit to the Integer of the target class. The work-around is to provide the manually cleaned WSDL-file to those, who want to create a client to that service.

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik

>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Olaf Danne (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12376051 ] 

Olaf Danne commented on AXIS-2424:
----------------------------------

Dear Dies Koper,

I am working with Dr. Weik who originally posted this bug. With regard to your comment, please find attached the following files:

- Axis_2424_Test.wsdl.first : the WSDL file after the first Java2WSDL as describe above
- Axis_2424_Test.wsdl.second : the WSDL file after the second Java2WSDL
- Axis_2424_TestLight_1.java : the original JavaBean with declarations and getters/setters
- Axis_2424_TestLight_2.java : the JavaBean after the first Java2WSDL and WSDL2Java
- Axis_2424_TestLight_3.java : the JavaBean after the correction of the variable "BStationBefore" (note that all occurrences of the variable and the statement "elemField.setXmlType(...)" were corrected)
- Axis_2424_TestLight_4.java : the JavaBean after the second Java2WSDL and WSDL2Java

As you also can see, the errorneous behaviour occurs for all arrays of primitive data types (int[], float[],...) whereas everything is fine for arrays of the java.lang.* types.

We hope this information is useful for you. Please let us know.

Regards,
O. Danne


> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik

>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Olaf Danne (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12376052 ] 

Olaf Danne commented on AXIS-2424:
----------------------------------

I forgot to mention that these six files are in the "Axis_2424.zip"...

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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-2424) Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably

Posted by "Olaf Danne (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2424?page=comments#action_12377412 ] 

Olaf Danne commented on AXIS-2424:
----------------------------------

Thanks for your hint to the field names.

We tried this for "bStationBefore", so we had the getter "getbStationBefore" (same for the setter), and did the Java2WSDL with this. The resulting wsdl looks fine. However, when we now carry out the WSDL2Java and look at the code in the Java bean, the getter/setter names were again capitalized (--> getBStationBefore). This is strange, isn't it? 
Moreover, the problem only appears if in the field name the first letter is non-capitalized and the second letter is capitalized (bS...) . If we have a name e.g. like "testString", no letter is capitalized if the getter is named "getTestString". So we still think it is some kind of a bug?! - What document are you referring to if you say "section 8.8" ? We can't find this anywhere in the Apache axis documentation...

> Java2WSDL and again WSDL2Java on the created wsdl modify the code irreversably
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2424
>          URL: http://issues.apache.org/jira/browse/AXIS-2424
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows 2000, Java 1.4.2_04
>     Reporter: Dr. Friedemann Weik
>  Attachments: Axis_2424.zip, Axis_2424_Test.java, Axis_2424_TestImpl.java
>
> A Java class containing definitions like:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> without the code generated by WSDL2Java creates a wsdl with
>      <element name="arrPossibleDestPenalties" nillable="true" type="impl:ArrayOf_xsd_int"/>
>      <element name="BStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private int[] arrPossibleDestPenalties;
>   private java.lang.Boolean BStationBefore;
> thus creating the right definition for int[] but changing the name of the variable from bStationBefore to BStationBefore. If I correct the modified name back to its original, wherever it appears, compile the Java-files and do the Java2WSDL again, I receive the following:
>      <element name="arrPossibleDestPenalties" nillable="true" type="xsd:int"/>
>      <element name="bStationBefore" nillable="true" type="soapenc:boolean"/>
> Using this generated wsdl and creating the Java files back by WSDL2Java together with the generated methods, I will find:
>   private java.lang.Integer arrPossibleDestPenalties;
>   private java.lang.Boolean bStationBefore;
> Which means:
> - a pure Java file with Java2WSDL and WSDL2Java will modify the names
> - a generated Java file with Java2WSDL and WSDL2Java will modify the int[] to Integer (not as array!).

-- 
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