I need to implement UserName authentication for my web service.
Currently I am considering these two approaches
- SOAPHeader: http://www.codeproject.com/KB/cpp/authforwebservices.aspx
- UserNameToken: WSE 3.0: http://msdn.microsoft.com/en-us/library/aa480575.aspx
Can anyone tell me pros-cons of these approaches?
One of the major doubt is regarding client being able to consume the service. Client is using Java, would it be possible for them to pass UserNameToken implemented using WSE or are there any integration issues?
EDIT: Also please suggest if there are any better ways (ASMX Services) to implement UserName/Password authentication.