I set my Java System Properties for my secure SSL Connection like this:
System.setProperty("https.protocols", "TLSv1.2")
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12")
System.setProperty("javax.net.ssl.keyStore",keyStore)
System.setProperty("javax.net.ssl.keyStorePassword", keyStorePW)
System.setProperty("javax.net.ssl.trustStore",trustStore)
System.setProperty("javax.net.ssl.trustStorePassword", trustStorePW)
Now I do Something like this:
- send SOAP request 1
- doing other stuff
- send SOAP request 2
If "doing other stuff" takes longer then 5 sec, the whole SSL Handshake (Server Hello, Client hello etc.) will we done again. If "doing other stuff" takes less then 5 sec, the request will be send immediately
--> How Can I set this duration longer then 5 sec?
EDIT:
This is how I do my SOAP call:
static String callSoap() {
SOAPMessage request = //..creating request
SOAPMessage response=dispatch.invoke(request)
SOAPBody responseBody=response.getSOAPBody()
.......
return....
}