添加时出现soapui WSDL错误 [英] soapui WSDL error when adding

查看:92
本文介绍了添加时出现soapui WSDL错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在添加这个时不断收到这个错误.有任何想法吗.我处理过其他 WSDL 链接,除此之外它们都很好.

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 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径

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

推荐答案

WSDL 是在 https 上的,所以你需要将域证书添加到你在 SOAPUI 安装附带的 JRE 上的 cacerts(也可能是 wsdl 被发布同样在 http 上,因此您可以尝试将 wsdl 的 url 更改为 http,如果没有尝试以下步骤,请先尝试此操作).

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).

需要下载服务器证书(可以用浏览器连接到wsdl的url,将证书保存为存档).

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).

然后您可以使用 keytool 将此证书导入您的 cacerts:

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

(cacerts 的默认密码是changeit").

(default password for cacerts is "changeit").

通过这些步骤,您可以使用 WSDL 并避免PKIX 路径构建失败"异常.

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

希望这会有所帮助,

这篇关于添加时出现soapui WSDL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆