Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a web service with HTTPS endpoint in Apache CXF

I have Apache as front-end to my Tomcat server where I have deployed a CXF web service. All access to my web service happens through SSL which is handled by Apache web server. This means that my Tomcat server is totally unaware of SSL. As a result my CXF generated web service has a http endpoint URL. How do I make it HTTPS while giving the opportunity of handling SSL to Apache web server. Any clue to override endpoint URL scheme?

like image 991
user1177489 Avatar asked Nov 23 '25 14:11

user1177489


1 Answers

If you do that, you should also set proper address (that with HTTPS) in publishedEndpointURL. Like here: How to start cxf service on localhost but return external address in wsdl?

This will make imports in generated WSDL point to proper URLs.

like image 103
Dawid Pytel Avatar answered Nov 25 '25 10:11

Dawid Pytel