Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Sharepoint Lists web service

  Asked By: Pauline Kent         Date: Jun 11, 2009      Category: Sharepoint      Views: 379
 

I have a SharePoint Document Library and inside that document
library I have folders - "TestFolder".

I created the "TestFolder" using UpdateListItems and the
corresponding caml for that.

I want to add a *.txt or *.doc file from my hard drive
(c:\temp\test.txt) or a byte[] to the "Test Folder", but have not
figured out the caml to do this. The documentation for
UpdateListItems says I can "add" items to the list ... and I did add
the folder.

I have also tried the Lists AddAttachment call, but could not get
this to work either.

Does anyone know the correct caml to use for UpdateListItems in this
situation or know how to get AddAttachment to work?

Tagged:        

 

2 Answers Found

 
Answer #1       Answered By: Kacie Calhoun          Answered On: Jun 11, 2009       

This does not exist - there is no OOTB web  service call  to upload items  into a
document library. You'll need to either write your own web service  (discourage
for performance reasons) or use one of the other methods (POST, WebDav, FP-RPC).

 
Answer #2       Answered By: Duane Walton          Answered On: Jun 11, 2009       

Check out the topic "Uploading a File to a SharePoint Site from a Local Folder"
in the Microsoft SharePoint Products and Technologies 2003 SDK

 
Didn't find what you were looking for? Find more on Sharepoint Lists web service Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].