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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2010/12/19 12:43:30 UTC
[jira] Updated: (AXIS2-3786) WSDL2Java generates incorrect class
for complex types with more then one same named elements
[ https://issues.apache.org/jira/browse/AXIS2-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe updated AXIS2-3786:
-------------------------------------
Component/s: (was: wsdl)
codegen
> WSDL2Java generates incorrect class for complex types with more then one same named elements
> --------------------------------------------------------------------------------------------
>
> Key: AXIS2-3786
> URL: https://issues.apache.org/jira/browse/AXIS2-3786
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Environment: HP-UX, Java 1.5
> Reporter: Krystian Szczesny
> Assignee: Amila Chinthaka Suriarachchi
> Priority: Critical
> Attachments: DemoService.wsdl
>
>
> When trying to generate code from WSDL file containing complex type with two elements with same name, I will get an incorrect class.
> It didn't happen in Axis 1.3!
> WSDL file:
> [...]
> <xs:element name="addRequest">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="x" type="xs:int" />
> <xs:element name="y" type="xs:int"/>
> <xs:element name="y" type="xs:int"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> [...]
> In 1.4 i will receive:
> protected int localY;
> public int getY() {
> return localY;
> }
> public void setY(int param) {
> this.localY = param;
> }
>
> protected int localY;
> public int getY() {
> return localY;
> }
> public void setY(int param) {
> this.localY = param;
> }
> In 1.3:
> protected int localY;
> public int getY() {
> return localY;
> }
> public void setY(int param) {
> this.localY = param;
> }
> protected int localY0;
> public int getY0() {
> return localY0;
> }
> public void setY0(int param) {
> this.localY0 = param;
> }
> See attached example wsdl file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org