1

我希望有人可以帮助我解决这个问题。我正在尝试使用 SoapUI 通过 WsHttpBinding 调用 WCF 服务。该服务要求我通过客户端证书。如何在 Soap UI 中传递它?我可以轻松地创建客户端并调用服务,但我希望能够在 SoapUI 中执行此操作。

这是否可能,如果是,将不胜感激获得说明。

4

1 回答 1

2

你可能想检查几件事。

1)设置negotiateServiceCredential="false"

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

2) 还要确保在 SOAP UI 中勾选“将默认 WSA 添加到”

检查此链接 http://ddkonline.blogspot.com.br/2012/10/wcf-45-host-unreachable-when-calling.html

3)通过客户端证书检查以下链接

http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html

我希望这会有所帮助。

于 2013-10-10T23:02:01.687 回答