I’m working on a project to control light and heating in buildings. The backend (written in Java) will run on a Mac Mini and should be accessible via SOAP.
I want to keep the complexity of this project to a minimum because I don’t want everyone using it having to set up an application server. So up till now I worked with javax.xml.ws.Endpoint:
Endpoint endpoint = Endpoint.create(frontendInterface);
String uri = "http://"+config.getHost()+":"+config.getPort()+config.getPath();
endpoint.publish(uri);
This works surprisingly well (hey, when did you last see something in Java working with just 3 lines of code?), but now I’m looking for a way to use HTTPS instead of HTTP.
Is there a way to do this without using an application server or is there another way to secure this connection?
Greetings,
Marek
For server:
For client, be sure you do this: