Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1616

Conflict with data type names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.6.0
    • None
    • wsdl2c tool
    • Debian Squeeze i386

    Description

      The generated code with ADB bindings will not compile if an element or attribute, defined in a schema or the wsdl, is named "type". This would result in a data type adb_type_t that will conflict with an already defined axis2 data type adb_type_t use by the axis2 extension mapper.

      An excerpt from a schema defining a attribute named "type"

      <xs:element name="supportedMimeTypes" minOccurs="1" maxOccurs="1">
      <xs:complexType>
      <xs:sequence>
      <xs:element name="mimeType" minOccurs="0" maxOccurs="unbounded">
      <xs:complexType>
      <xs:attribute name="type" type="xs:string" use="required"/>
      <xs:attribute ref="xml:lang" use="optional"/>
      </xs:complexType>
      </xs:element>
      </xs:sequence>
      </xs:complexType>
      </xs:element>

      Attachments

        Activity

          People

            Unassigned Unassigned
            jabbors Johan Abbors
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: