Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.5, 2.4.4
-
None
-
Unknown
Description
<xsd:schema
targetNamespace="http://TestResponse/Response"
xmlns:bons0="http://TestResponse/Response"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="../A_Acknowledgement/A_Acknowledgements.xsd" />
<xsd:complexType name="MessageDeliveryResponse" abstract="false">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0"
name="A_Acknowledgements"
type="bons:A_Acknowledgements" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
When generating the code using WSDL2Java, it returns an "'A_Acknowledgements' is already defined" error.
However, it works if A_Acknowledgements.xsd file is moved to the same directory as the referencing schema (above) and modified to: <xsd:include schemaLocation="A_Acknowledgements.xsd" />
Attachments
Issue Links
- is related to
-
CXF-3968 WSDLToJava Error: ...is already defined at... when referencing deployed wsdl
-
- Closed
-