cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-3927) WSDLToJava Error -- two elements with the same name defined (same error difference issue)
Date Tue, 29 Nov 2011 19:05:40 GMT

     [ https://issues.apache.org/jira/browse/CXF-3927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp updated CXF-3927:
-----------------------------

    Fix Version/s: NeedMoreInfo
    
> WSDLToJava Error -- two elements with the same name defined (same error difference issue)
> -----------------------------------------------------------------------------------------
>
>                 Key: CXF-3927
>                 URL: https://issues.apache.org/jira/browse/CXF-3927
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.5, 2.4.4
>            Reporter: Mark Liu
>             Fix For: NeedMoreInfo
>
>
> <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"
/>

--
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

        

Mime
View raw message