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 Web Service security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service security" Watch "Web Service security" New topic

Web Service security

Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
Can some one please share good tutorial with example to secure a webservice.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39544
The details depend on which SOAP stack you're using - which one is it?

Ping & DNS - updated with new look and Ping home screen widget
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
I am using glass fish server v3. I may use AXIS2 also.

Vijay Kumar
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
For Metro (GlassFish), take a look at
There are at least one tutorial and one screencast on web service security.
Best wishes!
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
Thanks for quick response.

I am looking a message level security which is given in provided link but not very informative. It is based on NETBEANS can I have a example bases on eclipse and my web service consumer can use any technology .Net.

For example there is a Web site developed in JSP/servlet and hosted on a Tomcat as soon as request land on server and web service call to another server on which my services are hosted. Service consumer can send a web services request which can be generated by AXIS2 stubs/JAX-WS or .net

Please suggest how can I enforce client to send a secure message to service.


I agree. Here's the link:
subject: Web Service security
Similar Threads
Q on common architecture...
WA #1.....word association
Authentication with LDAP using Java(URGENT)
java network authorization
cafebabe in java