On Thu, Jan 29, 2009 at 5:55 AM, Thallapragada, Sowmi <[email protected]>wrote:
> I notice that in Axis2 1.3 the WSDL2Java allowed duplicate element > definitions by renaming (by appending a number at the end), but 1.4.1 just > generates methods with the same name. This is causing compilation errors & > causing backward compatibility issues. > > > > Eg. > > > > *<xsd:element name="averageSpeed" type="xsd:int" />* > > <xsd:element name="postedSpeed" type="xsd:int" /> > > <xsd:element name="slowestSpeed" type="xsd:int" /> > > *<xsd:element name="averageSpeed" type="xsd:int" />* > > > > In 1.3 this generated 2 methods called "getAverageSpeed()" & > "getAverageSpeed0()", but in 1.4.1 it generates two methods called > "getAverageSpeed()" and so the compilation fails. > > > > Can you confirm this? Is there an option I can pass to 1.4.1 WSDL2Java to > allow the duplicate element definition? > Unfortunately no. IMO duplicate elements are not allowed. Please have a look at with another databinding framework. (i.e -d jaxbri or -d xmlbeans) thanks, Amila. > > > At this point, changing the schema to eliminate the duplicate element is > not an option, so I am looking forward to your help. > > > > Regards, > > Sowmi > > > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
