GeeCON Prague 2014*
The moose likes Web Services and the fly likes how to store login information during ws calls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "how to store login information during ws calls" Watch "how to store login information during ws calls" New topic
Author

how to store login information during ws calls

Peter Kovac
Ranch Hand

Joined: Aug 08, 2010
Posts: 42
Hi,

I need help on the following:

I'm to write a Java Web-Service using JAX-WS but the clients might not be written in Java.

The ws has a loginCall(userName,pwd) and my question what is the best way to maintain if user is logged in?

Should I store this information in HTTP session or should client provide it on every ws call?

If I store user data in a session will it break the stateless status of a ws?

Thanks,
Jagdish Hatagale
Ranch Hand

Joined: Apr 07, 2010
Posts: 33
Yes peter you can either set this value in session or you can add this value with ws calls as an parameter with the service call.
 
Consider Paul's rocket mass heater.
 
subject: how to store login information during ws calls