i am calling a SOAP server with org.apache.commons.httpclient.HttpClient 3.1 . Here is snippet of my code :
    URL targetURL =
                    new URL(msgContext.getStrProp(MessageContext.TRANS_URL));
    HttpClient httpClient = new HttpClient(this.connectionManager);
    httpClient.getParams().setConnectionManagerTimeout(this.clientProperties.getConnectionPoolTimeout());
    HostConfiguration hostConfiguration = 
                    getHostConfiguration(httpClient, msgContext, targetURL);
    Credentials defaultcreds = new UsernamePasswordCredentials(msgContext.getUsername(), msgContext.getPassword());
    httpClient.getState().setCredentials(new AuthScope(msgContext.getStrProp(MessageContext.TRANS_URL), 80, AuthScope.ANY_REALM), defaultcreds);
    httpClient.getParams().setAuthenticationPreemptive(true);
    httpClient.executeMethod(hostConfiguration, method, null);
However I am getting javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake exception.
I tried to fix it by creating a trust manager that does not validate certificate. but the error persists. Is there any other method to call it using TLSv1.2 or by-pass ssl security?
