Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
How to expose a Java web service over HTTPS

Hi,
I am rookie in web services and SSL. I have created a Java web service and exposed it as a web service over HTTP. Now I want to change the protocol to HTTPS. Please help me with the steps to do that.
This is a POC, so I would not like to go for any paid SSL service (e.g. Symantec).
I am using SOA Suite 10.1.3.4 and JDeveloper 10.1.3.5.
Regards,
Arindam
Answers
-
Hi Arindam,
Foremost the application server should be configured/ enabled on SSL port. If the application server is enabled to use on SSL port, then by default you can access your webservice endpoint on HTTP/HTTPS ports.
You can also restrict the service consumers accessing the service on HTTP port by using @Policy annotation in your JAX WS web service and attach the 'HTTPS' token policy. Hope the below links will be helpful for you.
http://docs.oracle.com/cd/E12839_01/web.1111/e13713/transport.htm#WSSOV246 ( Example 3-1 )
https://docs.oracle.com/cd/E21764_01/web.1111/e13713/message.htm#WSSOV268
-
Thanks. These documents talk about SOA 11g. Does the same apply to 10g as well? I am working on SOA 10.1.3.4.
Regards,
Arindam
-
Hi Arindam,
The links provided applies for 10g as well. I believe you are working on Java web services and it holds good for 10g too.