axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2C-1145) Implement Unwrapped mode for Axis2/C WSDL2C
Date Mon, 15 Sep 2008 14:09:44 GMT

     [ https://issues.apache.org/jira/browse/AXIS2C-1145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dimuthu Gamage updated AXIS2C-1145:
-----------------------------------

    Attachment: unwrapped.zip

Test case is attached for the fix

> Implement 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
>         Attachments: unwrapped.zip
>
>
> 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message