【问题标题】:How can a WCF talk to Web Application and Sharepoint Web Services at the same time?WCF 如何同时与 Web 应用程序和 Sharepoint Web 服务通信?
【发布时间】:2012-07-24 14:33:24
【问题描述】:

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

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

Sharepoint 2010 默认使用安全模式 =“TransportCredential only”进行身份验证,Web 应用程序使用“Windows”作为安全模式。

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

如何配置 WCF 服务以同时与 Sharepoint 服务和 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 应用程序?这将允许您单独为每个端点配置安全性。

标签: c# wcf web-services sharepoint authentication


【解决方案1】:

蒂姆帮我找到答案

您是否考虑过公开单独的端点?一个用于 Sharepoint,一个用于 Web 应用程序?这将允许您单独为每个端点配置安全性。 -蒂姆

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-04
    • 1970-01-01
    • 1970-01-01
    • 2011-09-19
    • 2011-06-17
    相关资源
    最近更新 更多