Getting the session id of a stateful web service?

A

andreas.baus

Hi.

I'm trying to build a webservice using Axis including a simple
username/password authorization scheme. That means, any user of the
webservice has to send his credentials in a "login" request, and only
subsequent requests with a valid session id are executed. It wasn't
hard to set up communication between the server and the client (which
is written in .NET) so they are now happily exchanging a JSESSIONID via
a cookie, but somehow I don't see a way to get my hands on this id on
the server side using the Axis API, so I can do my own session
validation on it.

I know I get a MessageContext provided to my Handler in the invoke()
method, and I suppose I have to get to the HttpServletRequest object
that initiated it, but I don't see it exposed anywhere.

Any ideas, anyone?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top