我使用的客戶端和服務器這樣綁定配置:basicHttpBinding的與TransportWithMessageCredential和clientCredentialType =「視窗」
<basicHttpBinding>
<binding name="BasicHttpBinding_IService1">
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>
客戶端憑證似乎不能自動地通過(或者是他們?)這樣,像我假定,所以我需要知道如何自己設置它們。這甚至會起作用嗎?
我已經在IIS中激活了Windows身份驗證。我甚至無法將服務引用添加到像這樣配置的WCF服務。 – UrbanEsc 2012-07-16 11:19:55
如果您將我們的服務配置爲使用BasicHttpBinding,那麼您將無法添加服務引用,因爲通過使用此綁定,實際上並未使用SOAP。對於基於非肥皂的服務,您無法生成元數據 – Anand 2012-07-16 11:22:43
請參閱http://stackoverflow.com/questions/11390594/failed-to-add-a-service-service-metadata-may-not-be-accessible-make -sure-your/11392842#11392842 – Anand 2012-07-16 11:23:20