在SoapUI中WCF wsHttpBinding

jlp*_*jlp 4 wcf soapui

我正在尝试wsHttpBinding向soapUI 添加WCF服务.

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

验证邮件的安全性时发生错误

这是服务配置:

<wsHttpBinding>
   <binding name="wsHttpSecure">
      <security mode="Message">
         <message clientCredentialType="UserName" negotiateServiceCredential="true"    
                  establishSecurityContext="false" algorithmSuite="Default" />
      </security>
   </binding>
</wsHttpBinding>
Run Code Online (Sandbox Code Playgroud)

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

小智 10

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

您需要检查位于WS-A选项选项卡上的WS-A:To复选框.

如何启用wsa:To

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

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


Yar*_*veh 2

此设置不能与soapUI互操作:

negotiateServiceCredential="true" 
Run Code Online (Sandbox Code Playgroud)

将其更改为 false