JAXWS and sessions
Posted
by Pace
on Stack Overflow
See other posts from Stack Overflow
or by Pace
Published on 2010-05-01T23:41:54Z
Indexed on
2010/05/01
23:47 UTC
Read the original article
Hit count: 253
I'm fairly new to writing web services. I'm working on a SOAP service using JAXWS. I'd like to be able to have users log-in and in my service know which user is issuing a command. In other words, have some session handling.
One way I've seen to do this is to use cookies and access the HTTP layer from my web service. However, this puts a dependency on using HTTP as the transport layer (I'm aware HTTP is almost always the transport layer but I'm a purist).
Is there a better approach which keeps the service layer unaware of the transport layer? Is there some way I can accomplish this with servlet filters? I'd like the answer to be as framework agnostic as possible.
© Stack Overflow or respective owner