Bahi,
How to get the sessionID will depend on what you're using to track
sessions. If you're relying on HTTP sessions (where the session ID is
passed back and forth in HTTP headers), then you'll need something like this:
String sessionID =
msgC.getProperty(MC_HTTP_SERVLETREQUEST).getSession().getId();
(haven't tried that but it looks like it should work)
if you're using SimpleSessionHandler, which places a SimpleSession object
in your messageContext and passes session ID as a SOAP Header, you'll need
something like this:
MessageContext msgC = MessageContext.getCurrentContext();
String sessionID =
msgC.getProperty(SimpleSessionHandler.SESSION_ID).toString();
see this message:
http://marc.theaimsgroup.com/?l=axis-user&m=102097856825430&w=2
for a description of the difference between the two methods.
Andrew
At 04:28 PM 6/24/2002 +0200, you wrote:
>Hello,
>
>I am a newbie in axis/SOAP. I have tested some examples, they work very well.
>For my example and for session tracking goals i want to get the sessionID
>in my client.
>I have tried several times and used the help from the mailing list but
>without result.
>
>I can get only the session objekt, that i send from the following service:
>
>public class MyTestSession {
>
> Session mySession = MessageContext.getCurrentContext().getSession();
>
> public String getMySession(String division, String team) {
> String retvalue="";
> return retValue+mySession
> }
>}
>
>Please can anyone help me, how to get the sessionID from the session
>object, or how i can i do to get it from another way (it is very nicely if
>i get some help code)
>
>thanks in advance
>
>Bahi
>
>______________________________________________________________________________
>FreeMail in der Premiumversion! Mit mehr Speicher, mehr Leistung, mehr
>Erlebnis und mehr Pramie. Jetzt unter http://club.web.de/?mc=021105