You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Mark Nüßler <ma...@9elements.com> on 2007/10/01 08:46:50 UTC

Re: create and use context's

hello users,

no answers ? is it an obsolete question
or does none of you know how - can't believe,
come on ;-)

mfg derMark


Mark Nüßler schrieb:
> hello users,
> 
> in java i am able to use the different context's,
> like service context and playing around with the
> different scope's.
> 
> i can see, that the adb_svc_skel_<service>_invoke
> method passes a message context (axis2_msg_ctx_t *msg_ctx).
> 
> when i try to get the service context id, it's NULL.
> 
> tmp_a_str = axis2_msg_ctx_get_svc_ctx_id(msg_ctx, env);
> printf("Id : %s\n", tmp_a_str);
> out -> Id : NULL
> 
> when i try to get the service context from the message context,
> i get a message context object, but it seems not to work.
> 
> i think i have to register the context i want to use in
> adb_svc_skel_<service>_init, but i don't know how to do this.
> 
> who can explain ?
> 
> mfg derMark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: create and use context's

Posted by Samisa Abeysinghe <sa...@wso2.com>.
Mark Nüßler wrote:
> hello users,
>
> no answers ? is it an obsolete question
> or does none of you know how - can't believe,
> come on ;-)
Please have a look at the sg_math service sample. In there, have a look 
at the add.c file.
Form line number 144, there is a sample on how to use the context.

HTH.

Samisa...
>
> mfg derMark
>
>
> Mark Nüßler schrieb:
>> hello users,
>>
>> in java i am able to use the different context's,
>> like service context and playing around with the
>> different scope's.
>>
>> i can see, that the adb_svc_skel_<service>_invoke
>> method passes a message context (axis2_msg_ctx_t *msg_ctx).
>>
>> when i try to get the service context id, it's NULL.
>>
>> tmp_a_str = axis2_msg_ctx_get_svc_ctx_id(msg_ctx, env);
>> printf("Id : %s\n", tmp_a_str);
>> out -> Id : NULL
>>
>> when i try to get the service context from the message context,
>> i get a message context object, but it seems not to work.
>>
>> i think i have to register the context i want to use in
>> adb_svc_skel_<service>_init, but i don't know how to do this.
>>
>> who can explain ?
>>
>> mfg derMark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>


-- 
Samisa Abeysinghe : WSO2 WSF/PHP
"http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org