title: How can i call a soap web service that changed from http to https?
body: <p>I tried to call a web service that changed recently from HTTP to HTTPS and I get this error :</p>
  <pre><code>    java.net.SocketException: Unexpected end of file from server
  </code></pre>
  <p>Note that i had issues with certificates but i added them in the truststore via keytool, then i set System properties with:</p>
  <pre><code>    System.setProperty(&quot;javax.net.ssl.trustStore&quot;, &quot;C://Progra~1//Java//jdk1.8.0_201//jre//lib//security//cacerts&quot;);
      System.setProperty(&quot;javax.net.ssl.trustStorePassword&quot;,&quot;changeit&quot;);
  </code></pre>
  <p>The error that appears:</p>
  <pre><code>main, handling exception: java.net.SocketException: Connection reset main, SEND TLSv1.2 ALERT:  fatal, description = unexpected_message main, WRITE: TLSv1.2 Alert, length = 2 main, 
  Exception sending alert: java.net.SocketException: Connection reset by peer: socket write error main, called closeSocket()
  </code></pre>
  <p>thank you in advance for your intervention!</p>