You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Kasun Indrasiri <ka...@gmail.com> on 2008/01/25 04:45:56 UTC
Accessing the SOAP headers at the svc_client side
Hi,
Is it possible to access the SOAP headers from the client side in Axis2/c.
In service side, we have the access to SOAP headers in 'invoke' method using
axis2_msg_ctx_t, where we can get in_msg_ctx through axis2_op_ctx_t.
Can we do this kind of thing in svc_client side? axis2_svc_client provides a
way to get to get svc_ctx through axis2_svc_client_get_svc_ctx, but how we
can access msg_ctx through this?
Thanks.
Kasun
Re: Accessing the SOAP headers at the svc_client side
Posted by Manjula Peiris <ma...@wso2.com>.
I think you can get the last response SOAP envelope from
axis2_svc_client_get_last_response_soap_envelope() method. From the SOAP
envelope you can get SOAP headers.
You can't access the msg_ctx directly from svc_client. For that you need
to get axis2_op_client from,
axis2_svc_client_get_op_client()
Then using that op_client you can retrieve msg_ctx by calling
axis2_op_client_get_msg_ctx()
-Manjula.
On Fri, 2008-01-25 at 09:15 +0530, Kasun Indrasiri wrote:
>
> Hi,
>
> Is it possible to access the SOAP headers from the client side in
> Axis2/c. In service side, we have the access to SOAP headers in
> 'invoke' method using axis2_msg_ctx_t, where we can get in_msg_ctx
> through axis2_op_ctx_t.
> Can we do this kind of thing in svc_client side? axis2_svc_client
> provides a way to get to get svc_ctx through
> axis2_svc_client_get_svc_ctx, but how we can access msg_ctx through
> this?
>
> Thanks.
>
> Kasun
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
Re: Accessing the SOAP headers at the svc_client side
Posted by Kasun Indrasiri <ka...@gmail.com>.
Hi all,
This would solve my problem.
Thanks a lot.
Kasun.
Re: Accessing the SOAP headers at the svc_client side
Posted by Dinesh Premalal <xy...@gmail.com>.
Hi Kasun,
"Kasun Indrasiri" <ka...@gmail.com> writes:
> Hi,
>
> Is it possible to access the SOAP headers from the client side in Axis2/c. In
> service side, we have the access to SOAP headers in 'invoke' method using
> axis2_msg_ctx_t, where we can get in_msg_ctx through axis2_op_ctx_t.
> Can we do this kind of thing in svc_client side? axis2_svc_client provides a
> way to get to get svc_ctx through axis2_svc_client_get_svc_ctx, but how we can
> access msg_ctx through this?
op_client = axis2_svc_client_get_op_client(svc_client, env);
msg_ctx = (axis2_msg_ctx_t *)axis2_op_client_get_msg_ctx (op_client,
env,
AXIS2_WSDL_MESSAGE_LABEL_IN);
If you want to get
incoming msg_ctx AXIS2_WSDL_MESSAGE_LABEL_IN
outgoing msg_ctx AXIS2_WSDL_MESSAGE_LABEL_OUT should use.
thanks,
Dinesh
--
http://nethu.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org