【发布时间】:2013-08-13 23:55:20
【问题描述】:
我正在开发一个 SharePoint 移动解决方案,我正在使用 server/_vti_bin/sitedata.asmx、server/_vti_bin/Lists.asmx 和 server/_vti_bin/copy.asmx 中公开的 Web 服务。
我能够使用server/_vti_bin/sitedata.asmx 中定义的服务 成功获取站点列表、文档库 和文件。
现在我实际上正在尝试将 iOS 中可用的相册中的 图像 文件上传到 SharePoint。为此,我尝试使用 CopyIntoItems 网络服务,在其中我得到以下错误响应。
<CopyResult ErrorCode="DestinationInvalid" ErrorMessage="The Copy web service method must be called on the same domain that contains the destination url." DestinationUrl="http://xxxxserveripxxxxxx/Shared Documents/image1.png"/>
但后来知道只有当要上传的文件也来自同一来源(即来自共享点)时才使用此服务。 有没有其他方法可以将 iPhone 中可用的文件上传到 SharePoint。
也很累addAttachmentserver/_vti_bin/Lists.asmx 中的服务防御者,但我无法识别需要列表名称和列表项 ID 的输入参数。
我正在尝试将文件上传到共享文档,所以我有 List Name 值,它是共享文档的花括号中的值,但现在列表项 Id 值应该是什么?
这些是我关于“共享文档”文档库的详细信息。
{
AllowAnonymousAccess = false;
AnonymousViewListItems = false;
BaseTemplate = DocumentLibrary;
BaseType = DocumentLibrary;
DefaultViewUrl = "/Shared Documents/Forms/AllItems.aspx";
Description = "Share a document with the team by adding it to this document library.";
InheritedSecurity = true;
InternalName = "{425F837A-F110-4876-98DE-C92902446935}";
LastModified = "2013-07-26 20:09:58Z";
ReadSecurity = 1;
Title = "Shared Documents";
},
所以,我使用 InternalName 值作为 listName 标签。
listItemID 的值应该是多少?
我的方法是否正确,或者是否有任何其他方法可以将本地文件从移动设备上传到 SharePoint?
谢谢 苏迪尔
【问题讨论】:
标签: ios sharepoint sharepoint-2010