Search code examples
javaweb-serviceswsdlintellij-idea

Intellij IDEA - Webservices client from WSDL with certificates


I am somewhat new to SSL/TLS and Java trust/keystores. I am attempting to generate a client to consume a web service from a IIS-hosted WSDL file. This worked fine before the service was configured to require certificates. I now receive a Wsdl url connection exception.

In an attempt to bypass this, I saved a local copy of the WSDL via IE (with the appropriate certs in place via the Certificates MMC snap-in). I then attempted to point IDEA to that location (file:/C:/projects/wsdl/wsdlname.wsdl).

This fails with the following error messages:

parsing WSDL...

[ERROR] sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid
certification path to requested target unknown location

[ERROR] invalid entity name: "Auth" (in namespace: "******")
line 0 of unknown location

Note: I've starred out the namespace.

  1. Is there a way to configure IntelliJ IDEA to be able to present a valid certificate if I want to use the generation utility/wizard?
  2. Is there a potential issue with the web service that is causing even the local WSDL import to fail?

Thanks in advance.


Solution

  • It should help if you install the certificate into JVM that is used to run IDEA via keytool.