Want to solve programming problems and get paid for it? If that sounds interesting to you then contact us.
I have also faced the same issue and resolved it with bellow code.One must put this code before the first call to webservices.
javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier( new javax.net.ssl.HostnameVerifier()
{ public boolean verify(String hostname, javax.net.ssl.SSLSession sslSession)
{ return hostname.equals("localhost"); } }
);
https://www.ibm.com/support/knowledgecenter/en/SS9J9E/ioc/ts_liberty_ip.html