Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Authenticating Web Service  RSS feed

 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a service on Rational Application Developer with JAX-WS. I have a requirement to authenticate the userid password which I am getting. How do I go about doing this?

I have searched with google and IBM site but can't find much.

Can someone please point me in the right direction?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Metro SOAP stack has an implementation of the WS-Security standard that allows you to do that. I'm not sure whether WebSphere (which I assume you're using) implements WS-Security, although I'd assume that it does - search its documentation for "WS-Security".
 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:The Metro SOAP stack has an implementation of the WS-Security standard that allows you to do that. I'm not sure whether WebSphere (which I assume you're using) implements WS-Security, although I'd assume that it does - search its documentation for "WS-Security".


Hi Ulf,
Thanks for the response. I did look at WS-Security implementation in WebSphere and it does implement it. However, it doesn't seem to do the userid/password authentication but creates its own keys. That was the reason behind my question to see if someone had done this.

I will research some more.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M Rama wrote:I did look at WS-Security implementation in WebSphere and it does implement it. However, it doesn't seem to do the userid/password authentication but creates its own keys.

This sounds a bit odd. WS-Security is a standard - if WebSphere implements it, then it supports username/password authentication. Also, I don't understand what "it creates its own keys" means in the context of authentication.
 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:
M Rama wrote:I did look at WS-Security implementation in WebSphere and it does implement it. However, it doesn't seem to do the userid/password authentication but creates its own keys.

This sounds a bit odd. WS-Security is a standard - if WebSphere implements it, then it supports username/password authentication. Also, I don't understand what "it creates its own keys" means in the context of authentication.


Hi Ulf,
Thanks for your response. In Websphere there seems to be an option for username/password but I am not sure how it has to be configured and is what I am trying to find.

I saw your article of doing this with axis2 and rampart http://www.javaranch.com/journal/200709/Journal200709.jsp#a3

While Websphere has its webservice written on top of axis2, I didn't see any articles on where axis installation is done and how to set AXIS_HOME.

Can you give me any pointers on how I can solve this?

Thanks for your time.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!