Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5801

Axis2 xsd2java - namespace added to inherited attributes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.3
    • Fix Version/s: None
    • Component/s: adb
    • Labels:
    • Environment:
      Axis2 1.7.3
       Windows
       Maven 3.3+

      Description

      We have recently migrated from Axis2 1.6.2 to 1.7.3.
      We have multiple XSDs that extend complex-type elements from a common parent XSD.

      After the migration we have the namespace add to the attributes.

      1.6.2 <Attribute name="name"/>
      1.7.3 <Attribute xmlns="http://www.example.org/master" name="name"/>

      Each time a Attribute is created a XML-Namespace is Setup. Is it possible to define the XML-Namespace in the XML root knot via settings?

      For example:

      <child:Object xmlns:ns1="http://www.example.org/master">
      <ns1:Attribute name="name"/>
      </child:Object>

      I will attach an example with two XSDs and the Axis 1.7.3 generated source-code.

        Attachments

        1. AXIS2-5801_Example.zip
          26 kB
          Philipp Lehmann

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              PLehmann Philipp Lehmann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: