[英]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.