我正在訪問第三方WCF服務(我無權訪問服務配置)我們正在使用SSL證書進行身份驗證。WCF身份驗證錯誤
試圖訪問任意所提供的方法
HTTP請求是未經授權的客戶端身份驗證方案「協商」的時候,我得到這個錯誤。從服務器接收到的 認證報頭是「協商,NTLM
我查了許多谷歌的鏈接和沒有運氣這麼遠也不知道還有什麼檢查我的身邊。
編輯
下面是配置
<system.serviceModel> <bindings> <wsHttpBinding> <binding name="wsHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="Windows" negotiateServiceCredential="true" establishSecurityContext="true" /> </security> </binding> </wsHttpBinding> </bindings> <client> <endpoint address="https://url" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding" contract="IApiWS" name="wsHttpBinding"> </endpoint> </client> </system.serviceModel>
你可以顯示你試圖訪問該服務的代碼,它看起來像是要求NTLM身份驗證 – Pharabus 2010-05-05 18:03:29
@Prabrabus:你想讓我粘貼什麼?客戶端配置或一些C#代碼?我會說我訪問Web服務的代碼是不相關的。我沒有什麼用處可以展示。只是調用一個類的方法:-(沒有安全設置 – StackOverflower 2010-05-05 18:08:49
你需要一些安全設置來通過WCF服務請求的身份驗證 – Pharabus 2010-05-05 18:20:11