[ 
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

Reply via email to