我需要连接第三者SOAP服务以获取数据。使用WS使用者组件,我可以提供WSDL并获取数据。该代码在anypoint Studio运行时中按预期方式工作。
在将代码部署到mule独立服务器中时,出现以下错误:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387) ~[?:1.8.0_111]
原因:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径 在sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)〜[?:1.8.0_111]
因此,我尝试在用于WS-consumer配置的HTTPS连接器配置中进入不安全模式。这开始引发另一种错误,如下所示:
Caused by: org.mule.api.config.ConfigurationException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'ProducerService.wsdl'.: java.net.SocketException: Connection reset (org.mule.api.lifecycle.InitialisationException) (org.mule.api.config.ConfigurationException)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:49) ~[mule-core-3.8.3.jar:3.8.3]
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:69) ~[mule-core-3.8.3.jar
上面的模式问题是一个开放源代码模式,这让我感到很奇怪。
有人可以提出建议吗?
谢谢。