aspose file tools
The moose likes Web Services and the fly likes WebService Security UsernameToken configuration in JAX-WS for Websphere Application Server 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "WebService Security UsernameToken configuration in JAX-WS for Websphere Application Server 6.1" Watch "WebService Security UsernameToken configuration in JAX-WS for Websphere Application Server 6.1" New topic
Author

WebService Security UsernameToken configuration in JAX-WS for Websphere Application Server 6.1

Rasheeem Rashi
Greenhorn

Joined: Feb 09, 2010
Posts: 3
Hello,

I need to consume a web service that is secured with WSS-usernameToken. I'm using JAX-WS-stack on WAS 6.1. I'm sure there's plenty of tutorials out there about the subject, but I can't seem to find any. Could someone help me out on how to configure a client application for WAS 6.1 to use WSS-usernameToken under JAX-WS or point me to an existing guide?

Thanks for reading this far. Hope to hear from you soon!

Rashi
Rasheeem Rashi
Greenhorn

Joined: Feb 09, 2010
Posts: 3
...nevermind. All ready found what I was looking for.

All this is done in the admin console:
1. Go to Services -->Policy sets and copy the Username WSSecurity default policy set and give the copy your own name
2. In your policy set add WS-Security policy (I didn't add any other policies)
3. On the main policy page, uncheck all the check boxes you can also remove the information in the request/response message part protection
4. Go to Service providers and click on your service export ( you'd go to service clients if it was an import)
5. Select the service and attach your previously created policy set
6. Click on assign binding and create a new binding
7. Add the WS-Security Policy (should be the only one available)
8. On the authentication and protection page click on the request:token-auth link and save it even if you don't make changes and it should show status configured
9. You may have to restart the server,or at least the application.

(http://www.ibm.com/developerworks/forums/thread.jspa?threadID=272559)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: WebService Security UsernameToken configuration in JAX-WS for Websphere Application Server 6.1
 
Similar Threads
WS-Security Token Passing implementation
how to implement ws-security in soap request header
SCDJWS latest version
Basic authentication soap header values?
exposes a web service and create a file