silverlight - 通过 Silverlight 访问 SharePoint Web 服务

标签 silverlight web-services sharepoint

我在通过 Silverlight 访问 SharePoint Webservice 时遇到问题。

An error occurred while trying to make a request to URI 'http://sample:8000/_vti_bin/Authentication.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.



一些问题:
  • 如何通过 Sharepoint Designer 正确部署 clientaccesspolicy.xml?只需在设计器中打开站点,添加文件然后发布?
  • 应部署 clientaccesspolicy.xml 的站点使用表单例份验证。我无法使用 Sharepoint Designer 在那里发布。因此,我为此站点创建了新区域,该区域使用 Windows 身份验证并在那里发布了 clientaccesspolicy.xml。两者都使用相同的内容数据库,不是吗?
  • 如果将发布 clientaccesspolicy.xml,如何允许匿名访问此文件?

  • 问候
    安东·卡尔奇克

    最佳答案

    这里回答我的问题 1. 和 2.:

  • 在 Sharepoint Designer 中,您可以通过以下方式打开站点:文件 -> 打开站点 -> 在文本字段“站点名称:”中键入站点的 URL。比将 clientaccesspolicy.xml 拖放到您站点的根目录中。
  • 如果您有表单例份验证,则此步骤不需要创建新区域(但由于某些原因它可能很有用)。您只需打开 Web 浏览器并输入您网站的 URL。然后填写文本字段(始终使用具有管理员权限的用户)并选中“自动登录”。之后,Sharepoint 设计器将使用此凭据用于指定的 URL。

  • 如果你能帮助我解决问题 Nr。 3、或者你有其他解决办法,如何从Silverlight访问clientaccesspolicy.xml,贴吧!

    关于silverlight - 通过 Silverlight 访问 SharePoint Web 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/509758/

    相关文章:

    wcf - 在 Silverlight 中使用 WCF 时添加服务引用有什么问题?

    silverlight - Silverlight 如何在 Web 浏览器中工作?

    jquery - 如何在 SharePoint Web 部件中正确使用 jquery - jquery 并不总是触发

    javascript - 如何从 SP.UI.ModalDialog 获取参数?

    sharepoint - DateTimeControl ondatechanged 事件未触发

    c# - Datagrid MVVM 滚动到 View

    silverlight - 对于 Silverlight 应用程序,在启动时从服务加载数据的最佳方式是什么?

    ios - 如何管理全局变量

    java - 如何从wsdl获取方法和参数

    c# - 从 .NET 使用 SAP Web 服务会抛出异常 ServiceModel.FaultException