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 "Dies Koper (JIRA)" <ax...@ws.apache.org> on 2006/05/01 04:02:46 UTC
[jira] Commented: (AXIS-2424) Java2WSDL and again WSDL2Java on the
created wsdl modify the code irreversably
[ 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