【问题标题】:WCF wsHttpBinding in SoapUISoapUI 中的 WCF wsHttpBinding
【发布时间】:2012-04-16 07:00:19
【问题描述】:

我正在尝试将带有wsHttpBinding 的 WCF 服务添加到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 生成的公钥值。

【问题讨论】:

标签: wcf soapui


【解决方案1】:

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

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

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

This is the blog containing the solution. Thanks David!!

【讨论】:

    【解决方案2】:

    此设置不能与soapUI 互操作:

    negotiateServiceCredential="true" 
    

    把它改成假

    【讨论】:

    • 您是否有消息来源确认soapUI 不支持该设置?
    • 感谢您的链接。但是,他们有关于这个主题的整个部分soapui.org/SOAP-and-WSDL/applying-ws-security.html - 这是关于什么的?
    • negotiateServiceCredential 使用 ssl 协商,这是 wcf 专有标准。它不是标准 ws-security 的一部分。而其他产品可以尝试实现它,这是从未做过的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多