Intellij IDEA - 来自 WSDL 的带有证书的 Web 服务客户端
我对 SSL/TLS 和 Java 信任/密钥库有点陌生。我正在尝试生成一个客户端来使用 IIS 托管的 WSDL 文件中的 Web 服务。在将服务配置为需要证书之前,这工作得很好。我现在收到 Wsdl url 连接异常
。
为了尝试绕过此问题,我通过 IE 保存了 WSDL 的本地副本(通过证书 MMC 管理单元放置了适当的证书)。然后,我尝试将 IDEA 指向该位置(file:/C:/projects/wsdl/wsdlname.wsdl
)。
此操作失败并显示以下错误消息:
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
注意:我已经用星号标出了名称空间。
- 如果我想使用生成实用程序/向导,有没有办法将 IntelliJ IDEA 配置为能够提供有效的证书?
- Web 服务是否存在潜在问题,导致本地 WSDL 导入失败?
提前致谢。
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.
- 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?
- Is there a potential issue with the web service that is causing even the local WSDL import to fail?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您将证书安装到用于通过 keytool 运行 IDEA 的 JVM 中,这应该会有所帮助。
It should help if you install the certificate into JVM that is used to run IDEA via
keytool
.