5

我正在尝试将 WCF 服务添加wsHttpBinding到soapUI。

我正在使用消息安全性,它适用于测试客户端,但 SoapUI 返回

验证邮件的安全性时出错

这是服务配置:

<wsHttpBinding>
   <binding name="wsHttpSecure">
      <security mode="Message">
         <message clientCredentialType="UserName" negotiateServiceCredential="true"    
                  establishSecurityContext="false" algorithmSuite="Default" />
      </security>
   </binding>
</wsHttpBinding>

这里http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html是一个文件,但他们说我需要 .jks 文件。我只在测试客户端配置文件中编码了 SvcUtil 生成的公钥值。

4

2 回答 2

10

经过大量研究,我在博客上找到了解决方案。

您需要选中位于 WS-A 选项选项卡上的 WS-A:To 复选框。

如何启用 wsa:To

这样做之后,我的问题就解决了。

这是包含解决方案的博客。谢谢大卫!!

于 2013-08-30T15:59:42.207 回答
2

此设置不能与soapUI 互操作:

negotiateServiceCredential="true" 

将其更改为假

于 2012-04-17T14:32:48.030 回答