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 "Krystian Szczesny (JIRA)" <ji...@apache.org> on 2008/05/06 14:48:55 UTC
[jira] Created: (AXIS2-3786) WSDL2Java generates incorrect class
for complex types with more then one same named elements
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
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Assigned: (AXIS2-3786) WSDL2Java generates incorrect class
for complex types with more then one same named elements
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-3786) WSDL2Java generates incorrect class
for complex types with more then one same named elements
Posted by "Krystian Szczesny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krystian Szczesny updated AXIS2-3786:
-------------------------------------
Attachment: DemoService.wsdl
Example wsdl file
> 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
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org