ios - 将文件从iOS移动应用程序上传到SharePoint

标签 ios sharepoint sharepoint-2010

我正在研究 SharePoint 移动解决方案,其中使用了server/_vti_bin/sitedata.asmxserver/_vti_bin/Lists.asmxserver/_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/

相关文章:

sharepoint - (401) 从 SharePoint 下载文件时出现未经授权的异常

sharepoint-2010 - 如何动态生成业务连接服务

azure - 是否可以通过 Azure bicep/ARM 模板为 LogicApp 指定 Sharepoint 连接?

sharepoint - 如何根据用户权限显示自定义操作菜单项

c# - 如何在 Sharepoint 2010 中的 c# 工作流期间重置 InfoPath 表单的数字签名?

javascript - 检测前端用户登录 SharePoint 2010 后是否存在 session 变量

ios - 为什么 ARKit MDLTransform 从相机变换中随机返回 0?

ios - 如何在 iOS 中播放视频 PHAsset?

ios - 如何获取当前用户图片并显示在imageView中?

ios - UILabel 属性文本呈现不正确