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

Code generation for handling several "part" element in element "message" in WSDL leads to incorrect ordering in generated code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.4.1
    • adb
    • None
    • Windows, Java 1.6

    Description

      Hi,

      when WSDL contain a message with several parts like this
      <message name="ppm_createResponse">
      <part name="returnValue" type="xsd:int" />
      <part name="returnComment" type="xsd:string" />
      <part name="accounid" type="xsd:string" />
      <part name="identify" type="xsd:string" />
      </message>

      then the ADB code generated does not respect the ordering of the parts. It generate code that handles parameter in different order and so it leads to UnexpectedElement error.

      I think the problem is in the file org.apache.axis2.schema.template.ADBBeanTemplate.xsl

      See my WSDL input and generated class where the ordering is incorrect (Class osp_methods.Ppm_createResponse, order problem from line 570 to 632)

      Attachments

        1. creactor_example.wsdl
          3 kB
          Bruno Delzant
        2. Ppm_createResponse.java
          20 kB
          Bruno Delzant

        Activity

          People

            Unassigned Unassigned
            jekkil Bruno Delzant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: