[
https://issues.apache.org/jira/browse/CXF-5238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753634#comment-13753634
]
David Roytenberg commented on CXF-5238:
---------------------------------------
These are the errors that are produced by WSDL2Java. The line numbers causing
the five conflicts are indicated in the logs.
[java] WSDLToJava Error: file:/C:/dev/prepaid/prepaid-sightline/src/main/ws
dl/TransactionService.Test.svc.xml [1172,4]: Two declarations cause a collision
in the ObjectFactory class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1153,7]: (Related to above error) This is the other declaratio
n.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [849,4]: Two declarations cause a collision in the ObjectFactor
y class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [823,7]: (Related to above error) This is the other declaration
.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1212,4]: Two declarations cause a collision in the ObjectFacto
ry class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1197,7]: (Related to above error) This is the other declaratio
n.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1036,4]: Two declarations cause a collision in the ObjectFacto
ry class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1014,7]: (Related to above error) This is the other declaratio
n.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [984,4]: Two declarations cause a collision in the ObjectFactor
y class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [956,7]: (Related to above error) This is the other declaration
.
[java]
[java]
[java] org.apache.cxf.tools.common.ToolException: file:/C:/dev/prepaid/prep
aid-sightline/src/main/wsdl/TransactionService.Test.svc.xml [1172,4]: Two declar
ations cause a collision in the ObjectFactory class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1153,7]: (Related to above error) This is the other declaratio
n.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [849,4]: Two declarations cause a collision in the ObjectFactor
y class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [823,7]: (Related to above error) This is the other declaration
.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1212,4]: Two declarations cause a collision in the ObjectFacto
ry class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1197,7]: (Related to above error) This is the other declaratio
n.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1036,4]: Two declarations cause a collision in the ObjectFacto
ry class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [1014,7]: (Related to above error) This is the other declaratio
n.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [984,4]: Two declarations cause a collision in the ObjectFactor
y class.
[java] file:/C:/dev/prepaid/prepaid-sightline/src/main/wsdl/TransactionServ
ice.Test.svc.xml [956,7]: (Related to above error) This is the other declaration
.
> WSDL2Java generates naming conflicts on a valid schema
> ------------------------------------------------------
>
> Key: CXF-5238
> URL: https://issues.apache.org/jira/browse/CXF-5238
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.7.5
> Environment: Windows 7, Apache ant
> Reporter: David Roytenberg
> Labels: newbie
>
> When running wsdl2java on a valid WSDL, the tool reports naming conflicts
> under the following circumstances:
> There is an element of this form
> <xs:element name="FooTransaction">
> <xs:complexType>
> <xs:sequence>
> <xs:element minOccurs="0" name="request" nillable="true"
> type="tns:FooTransactionRequest" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> and later another of the form
> <xs:element name="FooTransactionRequest" nillable="true"
> type="tns:FooTransactionRequest" />
> Wsdl2Java reports a naming conflict
> referencing the line numbers of the xs:element name="request and of the
> xs:element name="FooTransactionRequest"
> The validator in Eclipse says this is a valid WSDL.
> The service provider that owns the WSDL changed the inner element names
> inside the complex types which created this problem. The inner name used to
> be of the form "fooTransactionRequest" which does not cause a problem. In
> fact changing the name request to some other string also fixes the name
> conflict.
> It looks like the inner element of the inner element is being appended to the
> name of the outer element in the first block above, which generates a name
> identical to the element below.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira