添加时出现soapui WSDL错误

编程入门 行业动态 更新时间:2024-10-23 08:23:25
本文介绍了添加时出现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.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效认证路径

org.apache.xmlbeans.XmlException: javax.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错误

本文发布于:2023-11-16 18:47:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1606870.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   soapui   WSDL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!