Axis2-C
  1. Axis2-C
  2. AXIS2C-494

Generated code for complex types give compilation errors (WSDL2C Java Version)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Current (Nightly)
    • Fix Version/s: 1.0.0
    • Component/s: code generation
    • Labels:
      None

      Description

      <xs:complexType name="ErrorParameterType">
      <xs:sequence>
      <xs:element name="Value" type="xs:string" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute name="ParamID" type="xs:string"/>
      </xs:complexType>

      when there is complex type like above inside wsdl, generated .c file containing structure and function for manipulating it gave compilation errors.
      This is caused by if statement in the CADBBeanTemplate Source doesn't correctly process the input xml generated for the complex type.

      To correct the error we have to introduce a new attribute to the "property " element in the generated xml. And improve the following logic in template.

      <xsl:if test="property and (not(property/@attribute) or property/@attribute='')"> to
      <xsl:if test="property and (not(property/@attribute) or property/@attribute='' or property/@notattribute)">

      1. codegen.patch
        2 kB
        Milinda Lakmal Pathirage

        Activity

        Milinda Lakmal Pathirage created issue -
        Milinda Lakmal Pathirage made changes -
        Field Original Value New Value
        Attachment codegen.patch [ 12348341 ]
        Dinesh Weerapurage made changes -
        Assignee Dinesh Premalal [ xydinesh ]
        Dinesh Weerapurage made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.0.0 [ 12312211 ]

          People

          • Assignee:
            Dinesh Weerapurage
            Reporter:
            Milinda Lakmal Pathirage
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development