SSLHandshakeException talking to a https Web service using Spring WebServiceTemplate
posted 3 years ago
I am getting the below error talking to a https web service.
I am using spring's WebServiceTemplate and below's my xml configuration for it
I am able to hit the service from soapui but not from the sample java code I wrote. Should we have received some security certificates from the 3'rd party wsdl folks? I tried getting the server's certificate (Following this article - mkyong.com/webservices/jax-ws/…) and adding it to my jdk trust store but I am getting the below error now - org.springframework.ws.client.WebServiceTransportException: Precondition Failed 
Could some one please point me to why this is happening and how I can resolve this?