aspose file tools*
The moose likes Web Services and the fly likes Enabling both HTTP and HTTPS for an Web Service, deployed in the Same WAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Enabling both HTTP and HTTPS for an Web Service, deployed in the Same WAR" Watch "Enabling both HTTP and HTTPS for an Web Service, deployed in the Same WAR" New topic
Author

Enabling both HTTP and HTTPS for an Web Service, deployed in the Same WAR

D Toney
Greenhorn

Joined: Jul 21, 2010
Posts: 4
Hello,

I am new to web service deployment. I have created a simple web service using JAX-WS 2.0 implementation in IBM WebSphere 6.1. The webservice resides in a .WAR file.
The web service is deployed and fully functional in HTTP. Now I need to enable HTTPS access to this web service.

If I enable HTTPS, will the HTTP access to the service be affected? Is it possible to have the web service or the web module support both HTTP and HTTPS?

Please provide your valuable inputs.

Thanks.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
To expose both a HTTP and a HTTPS endpoint for one and the same service, you can have two different <wsdl:port> elements in the <wsdl:service> element in the WSDL, like in this example:

Note that both <wsdl:port> elements refer to one and the same binding.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enabling both HTTP and HTTPS for an Web Service, deployed in the Same WAR
 
Similar Threads
enable HTTPS in jboss
Making runtime configuration changes using mbeans
Web service with SSL
SSL configuration problem in Jboss 5.1.0
Flex UI and Restful Web Service Wars deployed on the same Tomcat