【问题标题】:uploading a file from iOS mobile application to SharePoint将文件从 iOS 移动应用程序上传到 SharePoint
【发布时间】:2013-08-13 23:55:20
【问题描述】:

我正在开发一个 SharePoint 移动解决方案,我正在使用 server/_vti_bin/sitedata.asmxserver/_vti_bin/Lists.asmxserver/_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


    【解决方案1】:

    您实际上是在调用 URL 还是在使用 IP(您将其删除并表示服务器 IP)?如果您没有为 IP 定义备用访问映射,则上传将失败,但 GET 请求通常可以正常工作。

    【讨论】:

    • True Dan... 在创建 Aletrnate 访问映射并尝试使用我使用的 url 后,上传功能按预期工作。谢谢...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-21
    • 1970-01-01
    • 1970-01-01
    • 2013-06-15
    • 1970-01-01
    • 2013-11-09
    相关资源
    最近更新 更多