You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by wadi wadi <wa...@gmail.com> on 2011/03/09 11:30:00 UTC

how to get sessionId on the client side

Hi,

I am using soap session scope and would like to know how to get the
sessionID on the client side.
I am not using any servlet just a simple client.

Thanks for your help!

Re: how to get sessionId on the client side

Posted by wadi wadi <wa...@gmail.com>.
Thanks Diego but I have no stub in my client code, I am using the latest
version of AXIS2, maybe there is no need to have the stub. Is there another
way to get the sessionid?

Thanks



On Wed, Mar 9, 2011 at 10:58 AM, Diego Monni <di...@gmail.com> wrote:

> In this way
>
> MessageContext inMsgCtx =
> stub._getServiceClient().getLastOperationContext().getMessageContexts().get("In");
>
> incomingCookie =
> (String)inMsgCtx.getServiceContext().getProperty(HTTPConstants.COOKIE_STRING);
>
> 2011/3/9 wadi wadi <wa...@gmail.com>
>
>> Hi,
>>
>> I am using soap session scope and would like to know how to get the
>> sessionID on the client side.
>> I am not using any servlet just a simple client.
>>
>> Thanks for your help!
>>
>>
>>
>


-- 
Wadienil.

Re: how to get sessionId on the client side

Posted by Diego Monni <di...@gmail.com>.
In this way

MessageContext inMsgCtx =
stub._getServiceClient().getLastOperationContext().getMessageContexts().get("In");

incomingCookie =
(String)inMsgCtx.getServiceContext().getProperty(HTTPConstants.COOKIE_STRING);

2011/3/9 wadi wadi <wa...@gmail.com>

> Hi,
>
> I am using soap session scope and would like to know how to get the
> sessionID on the client side.
> I am not using any servlet just a simple client.
>
> Thanks for your help!
>
>
>