我想为仅通过 HTTPS 公开其 WSDL 的远程 Web 服务创建代理。我有证书详细信息,在使用 SOAP UI 时我得到了肯定的响应。但我不想为密钥库和 trustore 设置 JVM -D 参数,需要 Mule SOAP 服务器代理来定义它们。下面是我正在使用的片段对远程服务的不安全访问。
<flow name="remoteProxy" doc:name="remoteProxy">
<http:inbound-endpoint address="http"
doc:name="HTTP" />
<cxf:proxy-service payload="envelope"
wsdlLocation="http://remoteserver.com/service/service26?wsdl" service="ServiceName"
namespace="http://remoteserver.com/provider/service/2012/" port="Port"
doc:name="SOAP">
</cxf:proxy-service>
<https:outbound-endpoint address="http://remoteserver.com/service/service26"
method="POST" doc:name="HTTPTo26"
exchange-pattern="request-response"/>
<cxf:proxy-client payload="envelope" doc:name="SOAP" />
</flow>
出于合规性原因,我没有为 WSDL 和 Endpoint 添加任何具体细节。在上面的 cxf:proxy-service wsdlLocation 将是 HTTPS 而不是 HTTP。