axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Vrech (JIRA)" <>
Subject [jira] Created: (AXIS2C-1182) adb_XXXX_add_nodes(_XXXX, env, _Y) FAILURES
Date Fri, 06 Jun 2008 12:00:45 GMT
 adb_XXXX_add_nodes(_XXXX, env, _Y) FAILURES

                 Key: AXIS2C-1182
             Project: Axis2-C
          Issue Type: Bug
          Components: wsdl2c tool
    Affects Versions: 1.4.0
         Environment: Linux Ubuntu 8.04 - Axis2/c binary distro
            Reporter: Samuel Vrech

Producing Stub code with WSDL2C Tool and adb support:

I try to set a Complex object defined as:

<xsd:group name="Where">

			<xsd:element name="where" type="cms:Predicate" maxOccurs="1" minOccurs="0" nillable="true"></xsd:element>
			<xsd:element name="where_id" type="xsd:string" maxOccurs="1" minOccurs="0" nillable="true"></xsd:element>



and Predicate defined as:

<xsd:complexType name="Predicate">


		<xsd:element name="nodes" type="cms:Reference" maxOccurs="unbounded" minOccurs="0" nillable="true">

			<xsd:element name="store" type="cms:Store" maxOccurs="1" minOccurs="0" nillable="true"></xsd:element>
			<xsd:element name="query" type="cms:Query" maxOccurs="1" minOccurs="0" nillable="true"></xsd:element>

I try to use the add_ style for the lists:

   adb_Predicate_t* _Predicate = adb_Predicate_create(env );
   adb_Predicate_add_nodes(_Predicate, env, _Reference);

but tracing the payload:

xmlns:xsi="" xsi:nil="1"/><n1:value>CANINO</n1:value>



tag <n0:where> is empty!

but using set-like method:


   adb_Predicate_t* _Predicate = adb_Predicate_create(env );

   axutil_array_list_t*  arg_nodes = axutil_array_list_create(env,1);


code produce the right xml:

xmlns:xsi="" xsi:nil="1"/><n1:value>CANINO</n1:value></n0:property>




<n0:where> filled in the right way!

Tracing the payload and ret_node:

    ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);

sometimes the procedures fails to decode the "right" traced XML. Probably because the same

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