[ https://issues.apache.org/jira/browse/AXIS2-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-3786: ---------------------------------------- Assignee: Amila Chinthaka Suriarachchi > 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: Axis 2.0 (Axis2) > Issue Type: Bug > Components: wsdl > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]