Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

soapui WSDL error when adding

I keep getting this error when adding this. Any ideas. I worked on other WSDL links and they are fine except this.

org.apache.xmlbeans.XmlException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

like image 661
sNewbie Avatar asked Feb 14 '14 13:02

sNewbie


3 Answers

The WSDL is on https, so you need to add the domain certificate to your cacerts on JRE which comes with SOAPUI installation (also could be probably that wsdl is published also on http so you can try to change the url for wsdl to http, first try this if not try steps below).

You have to download the server certificate (you can connect with the browser to the url of wsdl and save the certificate as an archive).

download server certificate sample

Then you can import this cert to your cacerts with keytool:

keytool -import -alias somealias -file serverCertificate.cer -keystore SOAPUI_HOME/jre/lib/security/cacerts

(default password for cacerts is "changeit").

With this steps you can use the WSDL and avoid the "PKIX path building failed" exception.

Hope this helps,

like image 157
albciff Avatar answered Oct 20 '22 22:10

albciff


The Problem with the SOAP UI is it's using it's won JRE to execute programs...

To resolve the above exception follow the below steps.

  1. Export the certificate from the key store or browser (which contain the public key)
  2. Go to the SOAPUI installed directory and locate following directory \SmartBear\soapUI-4.0.1\jre\lib\security
  3. Import the certificate in to cacerts trust store (Which is the default trust store)
  4. Restart the SOAP UI and load the WSDL...
like image 42
Vengat Maran Avatar answered Oct 20 '22 21:10

Vengat Maran


This appears to be a bug in SoapUI (at least as of 4.6.4). I just ran into the same issue and after making sure I had all of the CA certificates imported everywhere I found this post that mentions the same problem.

I installed the nightly build as mentioned in the post and I was able to get past the SSL handshake issue.

like image 2
squillman Avatar answered Oct 20 '22 20:10

squillman