我能够按照这个发现的步骤的 MSDN帖子,略作修改:
I was able to fix this by following the steps found at this msdn post, slightly modified:
- 右键单击WCF服务的Web.config文件,然后点击编辑WCF配置
- 在配置编辑器,在配置部分,请选择绑定文件夹中。
- 在绑定部分,选择新绑定配置
- 在创建新绑定对话框中,选择的wsHttpBinding 。
点击OK。
- 将命名绑定配置的一些逻辑和识别的名称的;例如, WsHttpEndpointBinding
- 点击安全标签。
- 通过从下拉菜单中选择此选项将模式属性为运输
- 从下拉列表中选择此选项将 TransportClientCredentialType 为 NTLM
- 在配置部分,选择 WsHttpEndpoint
-
设置BindingConfiguration属性的 WsHttpEndpointBinding 通过从下拉列表中选择此选项。
此关联绑定配置的绑定设置。
- Right-click the Web.config file of the WCF service and then click Edit WCF Configuration.
- In the Configuration Editor, in the Configuration section, select the Bindings folder.
- In the Bindings section, choose New Binding Configuration.
- In the Create a New Binding dialog box, select wsHttpBinding.
Click OK.
- Set the Name of the binding configuration to some logical and recognizable name; for example, WsHttpEndpointBinding.
- Click the Security tab.
- Set the Mode attribute to Transport by choosing this option from the drop-down menu.
- Set the TransportClientCredentialType to Ntlm by choosing this option from the drop-down list.
- In the Configuration section, select WsHttpEndpoint.
Set the BindingConfiguration attribute to WsHttpEndpointBinding by choosing this option from the drop-down list.
This associates the binding configuration setting with the binding.
在配置编辑器,在文件菜单上,单击保存。
In the Configuration Editor, on the File menu, click Save.
和(据我所知)使用这个集成的身份验证(而不是Windows集成)提供认证
And (as far as I know) this provides authentication using integrated authentication (but not Windows integrated).