Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to expose a Java web service over HTTPS

User_2E0J1Oct 8 2015 — edited Oct 10 2015

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

Comments

957742

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

User_2E0J1

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

957742

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.

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 7 2015
Added on Oct 8 2015
3 comments
533 views