gpt4 book ai didi

c# - 未经授权访问 WSS spsearch.asmx

转载 作者:行者123 更新时间:2023-11-30 18:10:24 24 4
gpt4 key购买 nike

我正在运行连接到 WSS 3.0 搜索网络服务 (spsearch.asmx) 的 ASP.NET 网络应用程序。

WSS 站点本身配置为匿名访问:站点搜索可与 chrome、firefox 等一起使用,无需授权。

我还为 spsearch.asmx 设置了匿名权限,但在尝试使用生成的 Web 服务代理进行连接时,我得到了未经授权。我尝试了很多设置(PreAuthenticate 等)。什么都不管用。是否需要特殊配置,或者此 Web 服务无法使用匿名身份验证?

最佳答案

奇怪的是,无论 SharePoint 和 IIS 中的设置如何,您都无法通过匿名访问使用任何内置 Web 服务。

您可以编写自己的 Web 服务来代理内置服务,并使用 IIS worker 帐户或其他“站点阅读器”帐户访问它们。

The SharePoint Search Service and Anonymous Access

Writing Custom Web Services for SharePoint Products and Technologies

关于c# - 未经授权访问 WSS spsearch.asmx,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1398714/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com