Are there known problems with session scope?
Specifying session scope in my deploy.wsdd results in:
1. SUCCESS: The server accurately has a "Set-Cookie" header on responses to requests
without any cookie
2. FAILURE: When the client makes a request with this "Cookie", the server does NOT
a
It's in the source code. Not an acceptable substitute for complete
documentation, but pretty handy!
-- bob
-Original Message-
I feel there is a slight lack of updated documentation. Maybe I'm just
looking in the wrong places. How did you know that the constant
MC_HTTP_SERVLETREQUEST
although this email may not get attached to the right thread...
Alex -
I've actually implemented just such a way of appending sessionID
information to an HTTP header so that the session is maintained across
different calls (even different transports). It basically involves
passing back a session
> MessageContext msgContext = AxisServer.getCurrentMessageContext();
> HttpServletRequest req =
>(HttpServletRequest)msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
> System.out.println("A client on the IP address " + req.getRemoteHost() + " is
>accessing my web service.");
>
t;...getSession().getId();")
Hope this helps (and was not obvious to you).
Eirik Wahl
-Original Message-
From: Alexander Lyubshav [mailto:[EMAIL PROTECTED]]
Sent: 3. juli 2002 19:45
To: [EMAIL PROTECTED]
Subject: Re: confused about cookies
> You want something like this:
>
text msgContext) throws AxisFault
> > > {
> > > Session session = msgContext.getSession();
> > >
> > > --Barry
> > >
> > > -Original Message-
> > > From: Alexander Lyubshav [mailto:[EMAIL PROTECTED]]
> > > Sent: Tues
ROTECTED]]
> > Sent: Tuesday, July 02, 2002 11:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: confused about cookies
> >
> >
> > Great, that makes it easier! So, uh, how can I find out the session ID
> > from
> > within the server code?
> >
>
To: [EMAIL PROTECTED]
> Subject: Re: confused about cookies
>
>
> Great, that makes it easier! So, uh, how can I find out the session ID
> from
> within the server code?
>
>
> >
> > >Thanks for your answer. I am not in control of the client though-- it
&
:39 AM
To: [EMAIL PROTECTED]
Subject: Re: confused about cookies
Great, that makes it easier! So, uh, how can I find out the session ID
from
within the server code?
>
> >Thanks for your answer. I am not in control of the client though-- it
> >doesn't use the Axis framework
= new your.code.YourCodeService() ;
blah.CookieContainer = new System.Net.CookieContainer() ; // add this
to use the session cookie
--Barry
-Original Message-
From: Andrew Vardeman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 11:16 AM
To: [EMAIL PROTECTED]
Subject: Re: confused about co
Great, that makes it easier! So, uh, how can I find out the session ID from
within the server code?
>
> >Thanks for your answer. I am not in control of the client though-- it
> >doesn't use the Axis framework either. Is there an easy way to do this
> >without client support? (Well, of co
>Thanks for your answer. I am not in control of the client though-- it
>doesn't use the Axis framework either. Is there an easy way to do this
>without client support? (Well, of course the client will pass the Cookie
>headers back.)
I think that's all the Call.setMaintainSession() function
Andrew,
Thanks for your answer. I am not in control of the client though-- it doesn't use the
Axis framework either. Is there an easy way to do this without client support?
(Well, of course the client will pass the Cookie headers back.)
Alexander
> Alexander,
>
> If you want to use cookie
Alexander,
If you want to use cookies for session management, you don't have to add a
handler. You just need to specify session scope in your deploy.wsdd and
tell the client to maintain session info. Check out this message:
http://marc.theaimsgroup.com/?l=axis-user&m=101775995930045&w=2
whi
I looked in the mailing list archives for information on how to add cookie handling to
a web service. (HTTP Cookies for sessions. also i'll need access to the session ID
in the program.)
I was swamped with a big collection of approaches, all of them "well I haven't done it
but this should wo
15 matches
Mail list logo