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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.6, 1.6.2
    • Fix Version/s: 1.6.3, 1.7.0
    • Component/s: adb
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: