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

WSDL2JAVA no setters in ADBBean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.6.3, 1.7.0
    • adb, codegen
    • None

    Description

      Generating java classes using wsdl2java (as ADBBeans) (Axis2 version 1.4.1)
      on WSDL containing the following information:

      <xs:complexType name="PaymentAmount">
      <xs:simpleContent>
      <xs:extension base="tns:Amount"/>
      </xs:simpleContent>
      </xs:complexType>
      <xs:complexType name="Amount">
      <xs:simpleContent>
      <xs:extension base="xs:decimal">
      <xs:attribute name="currency" type="tns:currency" use="required"/>
      </xs:extension>
      </xs:simpleContent>
      </xs:complexType>

      The generated PaymentAmount class has no setter or getter methods.
      The generated Amount class has as expected setter and getter method for Currency and Decimal.

      Attachments

        1. SoapService.wsdl
          5 kB
          Aaron Gourley
        2. gencode.zip
          50 kB
          Aaron Gourley
        3. SchemaCompiler.java.patch
          3 kB
          Aaron Gourley

        Activity

          People

            sagara Sagara Gunathunga
            niederland Roger Niederland
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: