Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3927

WSDLToJava Error -- two elements with the same name defined (same error difference issue)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.5, 2.4.4
    • NeedMoreInfo
    • JAXB Databinding
    • 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

          Activity

            People

              dkulp Daniel Kulp
              blicket Mark Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: