axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Chiurla (JIRA)" <>
Subject [jira] Created: (AXIS2C-846) Bug in stub generated parsing response with array of ints
Date Wed, 19 Dec 2007 15:24:43 GMT
Bug in stub generated parsing response with array of ints 

                 Key: AXIS2C-846
             Project: Axis2-C
          Issue Type: Bug
          Components: code generation
    Affects Versions: Current (Nightly)
         Environment: Linux
            Reporter: Antonio Chiurla

Parsing a response wich conatains an array of ints,
the array is not populated with values contained in SOAP response because the generated stub
test if text_value is different from NULL before to get text of element.

In my investigations I found a problem in file: modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
I think is sufficient the following patch at line 1483:

                                        <xsl:when test="$nativePropertyType='long' or $nativePropertyType='unsigned
+                                        text_value = axiom_element_get_text(current_element,
env, current_node);
                                          if(text_value != NULL)
                                              /* we keeps long in arrays from their pointers
-                                              text_value = axiom_element_get_text(current_element,
env, current_node);
                                              element = AXIS2_MALLOC(env-> allocator, sizeof(long));
                                              (*(<xsl:value-of select="$nativePropertyType"/>*)element)
= atol(text_value);
                                              axutil_array_list_add_at(arr_list, env, i, element);

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message