File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes help with Web Services authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "help with Web Services authentication" Watch "help with Web Services authentication" New topic

help with Web Services authentication

Rafael Angarita
Ranch Hand

Joined: Jan 09, 2009
Posts: 67

I'm lost regarding web services authentication. This is my situation:

Im using JAX-WS RI and Glassfish, and I have two distributed web services.
I need the client to be authenticated (login and password) and then use the first services and then the second, combine the result and show it.
I need both web services to be secured.

My question is: what kind of authentication I should use?

Thank you very much for your help.

Rafael Angarita.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
That's what WS-Security is all about. The easiest way to get it would be to use the Metro stack (, which bundles WS-Security with the JAX-WS RI.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Metro is the default web services stack in GlassFish. There is no need to install it, unless you need a newer version than the one delivered with the application server installation.
Best wishes!
I agree. Here's the link:
subject: help with Web Services authentication
jQuery in Action, 3rd edition