axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Including message context as a parameter in code generated skeleton.
Date Fri, 07 Aug 2009 11:37:34 GMT
On Fri, Aug 7, 2009 at 2:09 PM, Dimuthu Gamage <dimuthuc@gmail.com> wrote:

> +1.
>
> To keep the backward compatibility, we can given an option (or system
> property) at the code generation to set if a user want the old style code to
> generate, so by default it generate msg_ctx


Sounds good.

Samisa...


> parameter.
>
> Thanks
> Dimuthu
>
> On Fri, Aug 7, 2009 at 11:12 AM, Samisa Abeysinghe <samisa@wso2.com>wrote:
>
>> +1. Only problem is backward compatibility, how can we handle that?
>> Samisa...
>>
>>
>> On Fri, Aug 7, 2009 at 10:25 AM, Uthaiyashankar <shankar@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Currently, Skeleton generated does not include message context as part
>>> of the method signature. For example, following is an operation
>>> generated in the skeleton.
>>>
>>> adb_divResponse_t* axis2_skel_Calculator_div (const axutil_env_t *env,
>>>                                                          adb_div_t
>>> *_div1);
>>>
>>>
>>> However, for some services, we need msg_ctx. Specially, if our service
>>> logic depends on the user name from rampart, we need to access
>>> msg_ctx. Can we add it as an additional parameter? Like given below:
>>>
>>> adb_divResponse_t* axis2_skel_Calculator_div (const axutil_env_t *env,
>>> axis2_msg_ctx_t *msg_ctx,
>>>                                                          adb_div_t
>>> *_div1);
>>>
>>> Thoughts?
>>>
>>> Regards,
>>> Shankar
>>>
>>> --
>>> S.Uthaiyashankar
>>> Software Architect
>>> WSO2 Inc.
>>> http://wso2.com/ - "The Open Source SOA Company"
>>>
>>
>>
>>
>> --
>> Samisa Abeysinghe
>> Director, Engineering - WSO2 Inc.
>>
>> http://www.wso2.com/ - "The Open Source SOA Company"
>>
>
>
>
> --
> Thanks,
> Dimuthu Gamage
>
> http://www.dimuthu.org
> http://www.wso2.org
>



-- 
Samisa Abeysinghe
Director, Engineering - WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"

Mime
View raw message