0

One of the projects which I am now working on has this very old piece of code, which uses BindingProvider to call a WSDL client. But this BindingProvider sends in a HTTP URL as the endpoint. I have a requirement to change the endpoint to HTTPS and call the WSDL client. For the code which I tried, it is throwing PKIX certificate error. I went through this and this SO questions, but not finding the answer which suits my code. Should I add .jks file anywhere in this code?

Code:

((BindingProvider) portType).getRequestContext().put(
                BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endPointURL);
portType.myMethod(myRequest(businessObj));

Where, endPointURL is the https URL.

Thanks in advance.

Mike
  • 721
  • 1
  • 17
  • 44

0 Answers0