我使用的客户端和服务器这样绑定配置: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