views:

233

answers:

0

I have an XML schema having an element with the same name as an attribute:

...
<xs:sequence>
    <xs:element name="subscriberId" type="String"/>
    ...
    </xs:element>
</xs:sequence>
<xs:attribute name="subscriberId" type="String" use="required"/>
...

Axis 1.4 WSDL2Java generates two equal parameters in the constructor of the class, which of course does not work:

public Xpto(java.lang.String subscriberId,
       java.lang.String subscriberId,
       ....
)

Is there any way to solve this issue? WSDL2Java configurations does not seem to work.

Thank you.