tags:

views:

187

answers:

1

I would like to an attachment to a list item through web services only. 1 ) I created a list using 'AddList' 2 ) Once I got GUID, then added List Items using UpdateListItems 3 ) Then using ows_ID as listItemId and GUID of list as listName I tried to add an attachment. Here I used base64 encoder to encode a string and put that content inside attachment tag.

I get response as "Value does not fall within the expected range." always.

Is there any other way to add an attachment? Or using WebDav if I upload a document, is versioning maintained? I don't want to loose versions.

A: 

I am able to add attachment to list item. I put my experience here.

http://myveda-yvb.blogspot.com/2010/01/my-learnings-sharepoint-web-services.html

Vijaya Bhaskar