How can I force a SOAP Axis client to use TLS instead of SSL? I have this code:
SOAPMessage soapMessage = MessageFactory.newInstance() .c
try { SSLContext ctx = SSLContext.getInstance("TLSv1.2"); ctx.init(null, null, null); SSLContext.setDefault(ctx); } catch (Exception e) { System.out.println(e.getMessage()); }
You can use this code the set the default protocol for SSL to TLS 1.2 and then write your other statements.