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

Daniel Kulp resolved CXF-3927.
------------------------------

    Resolution: Incomplete
      Assignee: Daniel Kulp


Request for a complete testcase that demonstrates the issue unanswered for over 
a month.

                
> 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
>            Assignee: Daniel Kulp
>             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

        

Reply via email to