axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael Barriuso (JIRA)" <>
Subject [jira] [Created] (AXIS2-5958) Wrong C code generation for sequence types
Date Wed, 15 May 2019 13:29:00 GMT
Rafael Barriuso created AXIS2-5958:

             Summary: Wrong C code generation for sequence types
                 Key: AXIS2-5958
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.7.8
         Environment: Fedora 20
            Reporter: Rafael Barriuso

When generating the C code with
$AXIS2C_HOME/bin/tools/wsdl2c/ -uri $WSDL_PATH -ss -sd -d adb -u -o $SKEL_OUT_PATH

For an element like:

    <xsd:complexType name="MyType">
            <xsd:element name="MyName" type="MyElementType" minOccurs="0" maxOccurs="unbounded"/>
(notice the `maxOccurs="unbounded"`)



The type of "MyElementType" is incorrectly set to the parent "MyType" element and hence the
generated message is wrong.


To workaround the issue it's necessary to comment out the following line in the generated
type "adb_MyElementType.c", function  "adb_MyElementType_serialize_obj": 
axiom_element_add_attribute (parent_element, env, xsi_type_attri, parent);{code}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message