title: Using javax.xml.ws.Endpoint with HTTPS
body: <p>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. </p>
  
  <p>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:</p>
  
  <pre><code> Endpoint endpoint = Endpoint.create(frontendInterface);
   String uri = "http://"+config.getHost()+":"+config.getPort()+config.getPath();
  
   endpoint.publish(uri);
  </code></pre>
  
  <p>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. </p>
  
  <p>Is there a way to do this without using an application server or is there another way to secure this connection?</p>
  
  <p>Greetings,
  Marek</p>