aspose file tools
The moose likes Web Services and the fly likes Applying Security to the Web Service using Apache Axis 1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Applying Security to the Web Service using Apache Axis 1.4" Watch "Applying Security to the Web Service using Apache Axis 1.4" New topic
Author

Applying Security to the Web Service using Apache Axis 1.4

Ajay Dalvi
Greenhorn

Joined: Sep 14, 2006
Posts: 6
Hi All,
I am using Apache axis 1.4 for Web Services. I haven't found much information in apache axis documetation for Web Service Security.

Can some one please suggest me how to achieve the Web Service Security in Apache Axis.

Thanks

-Ajay
Amutha Ramesh
Greenhorn

Joined: Oct 04, 2006
Posts: 6
Hi Ajay,


Currently I am using Axis 1.3 for Webservices.
I too need information about Webservice security with Apache Axis.
Help me if you have solved the ways of implementing security.

Thanks,
Amutha
Watsh Rajneesh
Ranch Hand

Joined: Apr 17, 2006
Posts: 109
Have you seen this - http://ws.apache.org/axis/java/security.html. As mentioned here, if you are looking for XML level security then you will also have to use http://xml.apache.org/security/index.html. For transport level security you can use HTTPS.


SCJP 5.0 (90%), SCDJWS 1.4 (88%), SCWCD 1.4 (82%), SCBCD 1.3 (85%)
Ashkrit Sharma
Greenhorn

Joined: Oct 05, 2006
Posts: 7
Security has 2 parts Authentication & Authorization.
There are different ways of doing Authentication, but the most simple & secure way is to enable SSL for Axis servlet.
For Authorization you can use Handlers. Handlers are like servlet filter. You can read the SOAP message before it is reached to ultimate endpoint and apply Authorization rules.
Amutha Ramesh
Greenhorn

Joined: Oct 04, 2006
Posts: 6
Thankyou Rajneesh and Ashkrit for your useful information regarding security with Axis.

So

For Authentication - enabling SSL for Axis servlet
For Authorization - To use Handlers.

Since I am new to Axis I wish to know what would be the differnce between these two.

For Authorization do we need to use the classes from the below package

org.apache.axis.handlers

Could you please explain me little more.


With Regards,
Amutha
Ashkrit Sharma
Greenhorn

Joined: Oct 05, 2006
Posts: 7
You can get some sample implementation from samples/handler folder of axis 1.4 installation.
Yopu will get fair idea about that .
David Springsguth
Greenhorn

Joined: Sep 28, 2006
Posts: 2
Try looking at the WSS4J project from apache. There is a full description of how to use it.

http://ws.apache.org/wss4j/axis.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applying Security to the Web Service using Apache Axis 1.4
 
Similar Threads
Run Servlet on deployment
is it compulsory to throw remote exception?.
Axis Security
Web Service Security Using Apache Axis with rampart module
forget the exam, what shall I use in the real aplication?