aspose file tools*
The moose likes Web Services and the fly likes Need to consume secure web service using Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need to consume secure web service using Axis" Watch "Need to consume secure web service using Axis" New topic
Author

Need to consume secure web service using Axis

Vignesh Kumar.S
Greenhorn

Joined: Mar 16, 2009
Posts: 3
Hi All,
I have to invoke a secured web service using Axis. Could anybody help me with the steps/sample code?
Thanks,
Vignesh
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
Welcome to JavaRanch.

What does "secured" mean - secured how? HTTPS? HTTP Authentication? WS-Security? Something else?


Ping & DNS - my free Android networking tools app
Vignesh Kumar.S
Greenhorn

Joined: Mar 16, 2009
Posts: 3
Here I mean HTTPS web services.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
You'll need to import the server certificate into the client keystore (the "keytool" executable does that), and then you should be able to use HTTPS URLs.
Vignesh Kumar.S
Greenhorn

Joined: Mar 16, 2009
Posts: 3
Thanks. w.r.t code do we need to do any specific configurations .If so,could you provide any sample code to set these properties using Axis?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to consume secure web service using Axis