RPC使用客户端对象模型(而非Share Point Online)调用Share Point 2013和2016网站 [英] RPC calls for Share Point 2013 and 2016 sites using client object model (and not Share Point Online)
问题描述
当前,我们通过引用链接进行RPC调用:
Currently we are making RPC calls by refering to the link:
https://piyushksingh.com/2016/08/15/download-large-files-from-sharepoint-online/
https://piyushksingh.com/2016/08/15/download-large-files-from-sharepoint-online/
但是,此链接提到了如何仅对Share Point Online进行RPC调用.
However, this link mentions how to make RPC calls only for Share Point Online.
我们想知道如何使用客户端对象模型将其用于Share Point 2013和2016网站
We would like to know how to use the same for Share Point 2013 and 2016 sites using client object model
尝试了几件事,但是它引发了未经授权的异常
Tried out a couple of things however it throws unauthorized exception
Sejal Vanigotta
Sejal Vanigotta
推荐答案
在SharePoint内部部署中,RPC调用将直接调用特定的dll以执行某些功能,例如,调用SharePoint的"OWSSVR.dll".要将列表视图导出到Excel,这是RPC调用URL:
In SharePoint On-Premise, RPC call will call a specific dll directly to do some function, for example, call SharePoint "OWSSVR.dll" to export list view to Excel, this is the RPC call URL:
http://sp/sites/dev/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={5C8C1317-1C3F-4464-8A4F-1F363C84E2F0}&CacheControl=1
这是有关在SharePoint内部部署中进行RPC调用的演示:
Here is the demo about doing RPC call in SharePoint On-Premise:
http://sharepointfordeveloper.blogspot.sg/2012/03/sharepoint-rpc-protocols-examples-using.html
但是对于SharePoint 2013和2016,我建议您可以调用REST API来执行一些列出功能.
But for SharePoint 2013 and 2016, I would suggest you can call REST API to do some function to list instead.
谢谢
最好的问候
这篇关于RPC使用客户端对象模型(而非Share Point Online)调用Share Point 2013和2016网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!