使用摘要客户端身份验证方法访问ASMX Web服务(ASP.NET)

时间:2015-08-01 09:45:02

标签: c# asp.net asmx impersonation digest-authentication

访问使用摘要式身份验证的AMSX Web服务,我已按如下方式配置了我的网站的web.config文件:

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="SEWebServiceSoap" >
          <security mode="TransportCredentialOnly" >
            <transport clientCredentialType="Digest" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:00000/SEWebService.asmx" binding="basicHttpBinding" bindingConfiguration="SEWebServiceSoap" contract="SEWS.SEWebServiceSoap" name="SEWebServiceSoap" />
    </client>
    <behaviors>
      <endpointBehaviors>
        <behavior name="impersonationBehavior">
          <clientCredentials>
            <!--<windows allowedImpersonationLevel="Impersonation" allowNtlm="false" />-->
            <httpDigest impersonationLevel="Impersonation" />
          </clientCredentials>
        </behavior>
      </endpointBehaviors>
    </behaviors>
  </system.serviceModel>

但我不断收到此错误消息:

  

模仿级别&#39;识别&#39;已指定,但HTTP   摘要式身份验证只能支持“模拟”#39;使用时的水平   具有明确的凭证。

我搜索了很多,但没有找到任何信息。任何线索?

0 个答案:

没有答案