uploading a file from iOS mobile application to SharePoint -


i'm working on sharepoint mobile solution i'm using web services exposed in server/_vti_bin/sitedata.asmx, server/_vti_bin/lists.asmx , server/_vti_bin/copy.asmx.
i'm able fetch list of sites, document libraries , files using services defined in server/_vti_bin/sitedata.asmx.
i'm trying upload image file photo albums available in ios sharepoint. this, tried using copyintoitems web service, in i'm getting following error response.

    <copyresult errorcode="destinationinvalid" errormessage="the copy web service method must called on same domain contains destination url." destinationurl="http://xxxxserveripxxxxxx/shared documents/image1.png"/> 

but came know service used if file uploaded same source(i.e., sharepoint). there other way upload file available in iphone sharepoint.

also tired addattachment service defiend in server/_vti_bin/lists.asmx i'm unable identify input parameters requires list name , list item id.

i'm trying upload file shared documents, i've list name value 1 in curly braces of shared documents should list item id value?

these details i've regard "shared documents" document library.

    {                     allowanonymousaccess = false;                     anonymousviewlistitems = false;                     basetemplate = documentlibrary;                     basetype = documentlibrary;                     defaultviewurl = "/shared documents/forms/allitems.aspx";                     description = "share document team adding document library.";                     inheritedsecurity = true;                     internalname = "{425f837a-f110-4876-98de-c92902446935}";                     lastmodified = "2013-07-26 20:09:58z";                     readsecurity = 1;                     title = "shared documents";                 }, 

so, i'm using using internalname value listname tag.
should value of listitemid?

am going in right way or there other approach upload local file mobile sharepoint?

thanks sudheer

are calling url or using ip (you x'ed out , said server ip)? if don't have alternate access mappings defined ip, uploads fail requests work ok.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -