wood burning stoves*
The moose likes Web Services and the fly likes How to access Secure web method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to access Secure web method" Watch "How to access Secure web method" New topic
Author

How to access Secure web method

kalaiyarasan sivaprakasam
Greenhorn

Joined: Aug 17, 2009
Posts: 29
Hi,

I am new to Web services,

Can any one explain me,

how to access secure web services method from a client java file.
i used to create Client Jar with Apache Axis1_4

Thanks in advance


Kalai.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What does "secure" mean - SSL? Basic authentication? WS-Security authentication? Something else?
kalaiyarasan sivaprakasam
Greenhorn

Joined: Aug 17, 2009
Posts: 29
yes, SSL only


thanks
Kalai.
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Using SSL doesn't have much to do with web services per so, and more with properly setting up the client and server. The rough steps are: 1) SSL-enable the server, 2) install the server certificate in the client JRE, 3) use an HTTPS URL instead of an HTTP URL.

Note that SSL is outdated for encrypting web services, though. These day, the proper way to do that is to use WS-Security (which Axis' Rampart module implements).
 
Consider Paul's rocket mass heater.
 
subject: How to access Secure web method
 
Similar Threads
Passed OCEWSD (JEE 6) with 68%
closing web services connection
Implementing Business Object Web Services using Eclipse
get result from the another java package
How to access byte array web method