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

Krystian Szczesny updated WSCOMMONS-342:
----------------------------------------

    Attachment: DemoService.wsdl

> Incorrect class for complex types with more then one same named elements
> ------------------------------------------------------------------------
>
>                 Key: WSCOMMONS-342
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-342
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>         Environment: Java 1.5
>            Reporter: Krystian Szczesny
>         Attachments: DemoService.wsdl
>
>
> Hi,
> I want to switch from Axis 1.3 to 1.4 but I can't because WSDL2Java is 
> generating incorrect classes.
> Before, it used XmlSchema 1.3.2 and it worked great. Now it uses 
> XmlSchema-20080505.025514-82 and here's what is happening:
> 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>
> [...]
> Now:
> 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;
> }
> Before:
> 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;
> }
> I will attach a wsdl file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to