我正在研究 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
Web服务,在其中获得以下错误响应。 <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"/>
但是我们知道,仅当要上传的文件也来自同一来源(即来自sharepoint)时,才使用此服务。
还有其他方法可以将iPhone中可用的文件上传到SharePoint。
同样,疲倦的addAttachment
服务在server/_vti_bin/Lists.asmx
中也不合算,但我无法识别需要列表名称和列表项ID的输入参数。
我正在尝试将文件上传到“共享文档”,所以我具有列表名称值,它是“共享文档”花括号中的一个,但“列表项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的其他方法?
谢谢
苏德海尔
最佳答案
您实际上是在 call URL还是在使用IP(将其X表示为服务器IP)?如果您没有为IP定义备用访问映射,则上传将失败,但是GET请求通常可以正常进行。
关于ios - 将文件从iOS移动应用程序上传到SharePoint,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17967913/