繁体   English   中英

WCF如何同时与Web应用程序和Sharepoint Web服务通信?

[英]How can a WCF talk to Web Application and Sharepoint Web Services at the same time?

Web应用程序-> WCF服务-> Sharepoint用户配置文件Web服务

我有一个Web应用程序,一个WCF服务和Sharepoint 2010 Web服务。

默认情况下,Sharepoint 2010使用安全模式=“仅传输凭据”进行身份验证,并且Web应用程序将“ Windows”用作安全模式。

和sharepoint 2010服务使用Ntlm作为客户端凭据类型,而Web应用程序使用“ Windows”作为客户端凭据类型。

我如何配置WCF服务以使其能够同时与Sharepoint Service和Web应用程序进行通信。

Web应用程序

<security mode="Message">
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm="">
              <extendedProtectionPolicy policyEnforcement="Never"/>
            </transport>
            <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/>
          </security>

WCF服务

<security mode="TransportCredentialOnly">
      <transport clientCredentialType="Ntlm" proxyCredentialType="None"
       realm="" />
      <message clientCredentialType="UserName" algorithmSuite="Default" />
     </security>

蒂姆帮我得到了答案

您是否考虑过公开单独的端点? 一个用于Sharepoint,另一个用于Web应用程序? 这样,您就可以分别为每个端点配置安全性。 -蒂姆

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM