did you take a look at org.apache.axis.handlers.SimpleAuthenticationHandler ???

There is a basic user/password implementation there, which u can extend if u want...

also check the docs for how it works

stephen

Walid wrote:
Hello,

I am deploying a WS but I want users to authenticate with a login/password
in order to have access to the WS methods.

How can I do that ?

I thought about writing a login(username, password) method and store the
user session ID (taken from the SOAP Header) somewhere. And then check
if the user has successfully authenticated before trying to use the WS.
But I have no idea how to retrive the user ID.


I am using Java2WSDL and WSDL2Java to write the client and server of my WS.


Thanks for your help...






Reply via email to