wsdl2java: complexType with element and attribute having same name generate duplicate properties ------------------------------------------------------------------------------------------------
Key: AXIS2-5187 URL: https://issues.apache.org/jira/browse/AXIS2-5187 Project: Axis2 Issue Type: Bug Components: codegen Affects Versions: 1.6.1 Reporter: Oleg Aleshko I have a wsdl with the following type <xsd:complexType name="BaseEntity"> <xsd:sequence> <xsd:element minOccurs="0" name="Id" type="xsd:int"/> </xsd:sequence> <xsd:attribute name="Id" type="xsd:ID"/> </xsd:complexType> When generating with maven plugin declared like this: <plugin> <groupId>org.apache.axis2</groupId> <artifactId>axis2-wsdl2code-maven-plugin</artifactId> <version>1.6.1</version> <executions> <execution> <id>generate-mediaService</id> <goals> <goal>wsdl2code</goal> </goals> <configuration> <packageName>com.test</packageName> <wsdlFile>${project.basedir}/src/main/resources/wsdl/test.wsdl </wsdlFile> </configuration> </execution> </executions> <configuration> <unpackClasses>true</unpackClasses> <outputDirectory>${project.build.directory}/generated-sources</outputDirectory> </configuration> </plugin> there are two properties in generated BaseEntity class with the same name Id, thus the generated code fails to compile. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org