axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3786) WSDL2Java generates incorrect class for complex types with more then one same named elements
Date Fri, 24 Dec 2010 14:37:46 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi resolved AXIS2-3786.
-------------------------------------------------

    Resolution: Fixed

having complex type with two element with same name is invalid

> 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


Mime
View raw message