Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-898

simple problem with simpleTypes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6 Alpha
    • 1.6 Final
    • Client - Stub
    • None
    • W2KSP4 JDK 1.5.0_06

    Description

      Given the construct
      <xsd:simpleType xmlns="http://www.pegs-pegstour.com/API/XMLSchema/1.0.1"
      name="t_NonNegativeInt">
      <xsd:restriction base="xsd:integer">
      <xsd:minInclusive value="0"/>
      <xsd:maxExclusive value="2147483647"/>
      </xsd:restriction>
      </xsd:simpleType>
      <xsd:simpleType xmlns="http://www.pegs-pegstour.com/API/XMLSchema/1.0.1"
      name="t_Age">
      <xsd:restriction base="t_NonNegativeInt"/>
      </xsd:simpleType>
      wsdl2ws generates for the first case
      typedef xsd__integer t_NonNegativeInt;
      which seems absolutely correct to me
      but for the second case an empty class t_Age, so the underlying integer is
      not accessible.
      I would expect
      typedef t_NonNegativeInt t_Age;
      for the second case.

      Attachments

        1. wsdl2ws.jar
          189 kB
          Nadir K. Amra
        2. PegsTour.wsdl
          37 kB
          Franz Fehringer
        3. PegsTour.xsd
          306 kB
          Franz Fehringer

        Activity

          People

            nadiramra Nadir K. Amra
            fehrin Franz Fehringer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: