2013-07-31 56 views
2

我正在處理SharePoint移動解決方案,我正在使用在server/_vti_bin/sitedata.asmxserver/_vti_bin/Lists.asmxserver/_vti_bin/copy.asmx中公開的Web服務。
我能夠成功抓取網站,文檔庫和使用server/_vti_bin/sitedata.asmx定義的服務文件的名單。
現在我實際上試圖從iOS上的相冊中上傳圖片SharePoint。爲此,我嘗試使用CopyIntoItems Web服務,其中我收到以下錯誤響應。
將文件從iOS移動應用程序上傳到SharePoint

<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服務defiend在server/_vti_bin/Lists.asmx但我無法識別需要列表名稱和列表項目ID的輸入參數。

我試圖上傳一個文件到共享文檔,所以我已經列表名稱值是共享文檔的大括號中的值,但現在應該是List Item 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"; 
       }, 

所以,我使用listName標籤的使用InternalName值。
listItemID的值應該是什麼?

我會以正確的方式或者是否有其他方法將本地文件從移動設備上傳到SharePoint?

感謝 Sudheer

回答

0

你實際調用一個URL或者您使用的是IP(你x'ed出來,說服務器IP)?如果您沒有爲IP定義備用訪問映射,上傳將會失敗,但GET請求通常會正常工作。

+0

True Dan ...在創建Aletrnate訪問映射並嘗試使用我使用的url後,上傳功能按預期工作。謝謝... – Dantuluri

相關問題