我有肥皂 WCF SharePoint:
[ServiceContract]
public interface IService
{
[OperationContract]
string Test();
}
[BasicHttpBindingServiceMetadataExchangeEndpoint]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class Service : IService
{
public string Test()
{
WindowsIdentity identity = ServiceSecurityContext.Current.WindowsIdentity;
ClaimsIdentity claimsIdentity = new ClaimsIdentity(identity);
return SPContext.Current.Web.Title;
}
}
此服务映射到 ISAPI。在 SharePoint 上使用 FBA。以及如何连接到模拟/验证 FBA 用户的 WCF?