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

ADB can't generate codes for XSD which has SimpleContent restricted from a ComplexType.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.6, 1.6.2
    • 1.6.3, 1.7.0
    • adb
    • None

    Description

      See following example schema.

      <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://sample">
      <xs:complexType name="limitedString">
      <xs:simpleContent>
      <xs:restriction base="ns:rating">
      <xs:minLength value="2"/>
      <xs:maxLength value="4"/>
      <xs:pattern value="([a-d])*" />
      </xs:restriction>
      </xs:simpleContent>
      </xs:complexType>
      <xs:complexType name="rating">
      <xs:simpleContent>
      <xs:restriction base="ns:anyString">
      <xs:minLength value="2"/>
      <xs:maxLength value="8"/>
      <xs:pattern value="([a-z])*" />
      </xs:restriction>
      </xs:simpleContent>
      </xs:complexType>
      <xs:complexType name="anyString">
      <xs:simpleContent>
      <xs:extension base="xs:string" />
      </xs:simpleContent>
      </xs:complexType>
      </xs:schema>

      Attachments

        1. SimpleService.wsdl
          5 kB
          Sagara Gunathunga

        Activity

          People

            sagara Sagara Gunathunga
            sagara Sagara Gunathunga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: