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 Simon Elbaz <si...@free.fr> on 2007/08/01 06:18:17 UTC
[Axis2/C] Function axis2_msg_ctx_get_to returns null
Sorry, the subject of my last message was not the good.
Simon Elbaz wrote:
> Hi,
> I use axis2c (svn version of sunday 22, july). The need is to keep the
> source of the message using From field.
> In the client, the addressing module is engaged and the From field is
> set using the axis2_options_set_from function.
>
> From the server side, the following functions return something:
> options = axis2_msg_ctx_get_options(msg_ctx, env);
> axis2_endpoint_ref_from = axis2_msg_ctx_get_from(msg_ctx, env);
>
> Whereas axis2_endpoint_ref_to = axis2_msg_ctx_get_to(msg_ctx, env)
> returns NULL. axis2.xml is modified with <module
> ref="addressing"/> uncommented.
> services.xml as well with <parameter name="wsamapping" >some
> URL</parameter>.
>
> Am I missing something ?
> Thanks for your help
>
> Simon
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
Re: **JUNK** [Axis2/C] Function axis2_msg_ctx_get_to returns null
Posted by Samisa Abeysinghe <sa...@wso2.com>.
Simon Elbaz wrote:
> Sorry, the subject of my last message was not the good.
On the server side, try using
msg_info_headers = axis2_msg_ctx_get_msg_info_headers(msg_ctx, env);
axis2_endpoint_ref_from =
axis2_msg_info_headers_get_to(msg_info_headers, env);
Samisa...
>
>
> Simon Elbaz wrote:
>> Hi,
>> I use axis2c (svn version of sunday 22, july). The need is to keep
>> the source of the message using From field.
>> In the client, the addressing module is engaged and the From field is
>> set using the axis2_options_set_from function.
>>
>> From the server side, the following functions return something:
>> options = axis2_msg_ctx_get_options(msg_ctx, env);
>> axis2_endpoint_ref_from = axis2_msg_ctx_get_from(msg_ctx, env);
>>
>> Whereas axis2_endpoint_ref_to = axis2_msg_ctx_get_to(msg_ctx, env)
>> returns NULL. axis2.xml is modified with <module
>> ref="addressing"/> uncommented.
>> services.xml as well with <parameter name="wsamapping" >some
>> URL</parameter>.
>>
>> Am I missing something ?
>> Thanks for your help
>>
>> Simon
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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 : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org