Imprlment Unwrapped mode for Axis2/C WSDL2C
-------------------------------------------
Key: AXIS2C-1145
URL: https://issues.apache.org/jira/browse/AXIS2C-1145
Project: Axis2-C
Issue Type: Bug
Environment: Linux + windows
Reporter: Dimuthu Gamage
Assignee: Dimuthu Gamage
Currently we only have implemented wrapped mode API in generated code for
Axis2/C. But Java provide unwrapped mode with -uw option.
For an example for the following schema
<xs:element name="simpleAdd">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="param0"
nillable="true" type="xs:int"/>
<xs:element minOccurs="0" name="param1"
nillable="true" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>
for wrapped mode the api is like this ( support both Axis2/C and Axis2/ Java)
simpleAdd( param: simpleAdd); // you have to set param0, param1 within
the simpleAdd adb Class
for unwrapped mode (support only in Axis2/Java)
simpleAdd(param0: int, param1: int);
I think implemenation is simple, we can follow the same approach it is
implemented in the Axis2/Java generated code.
Here is how we should implement this,
int simpleAdd(int param0, param1)
{
// create the wrapper inside the function and set values
wrapper_element = adb_simpelAdd_create(env);
adb_simpleAdd_set_param0(wrapper_element, env, param0);
adb_simpleAdd_set_param1(wrapper_element, env, param1);
// execute the usual logic with wrapper_element
// get the respose and extract out the return value
ret_val = adb_simpleAddResponse(response_wrapper, env);
return ret_val;
}
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]