Joseph,
You should probably use Microsoft.SharePoint.Client and not use
the webservices directly.
See here: http://msdn.microsoft.com/en-us/library/ee535228.aspx
using System;
using Microsoft.SharePoint.Client;
using SP = Microsoft.SharePoint.Client;
namespace Microsoft.SDK.SharePointServices.Samples
{
class BreakSecurityInheritance
{
static void Main()
{
string siteUrl = "http://MyServer/sites/MySiteCollection";
ClientContext oContext = new ClientContext(siteUrl);
SP.List oList = oContext.Web.Lists.GetByTitle("Announcements");
oList.BreakRoleInheritance(true, false);
oContext.ExecuteQuery();
}
}
}
Cheers,
James
From: [email protected] [mailto:[email protected]] On Behalf Of
Joseph Clark
Sent: Friday, 17 December 2010 11:49 AM
To: ozMOSS
Subject: Updating list item permissions via SharePoint Web Services
Howdy all,
I'm trying to write some code that updates permissions on a List/document
library in SharePoint. I can see there is a Permissions
<http://msdn.microsoft.com/en-us/library/permissions.permissions_methods%28v=office.12%29.aspx>
web service for performing this kind of work, but there doesn't appear to be
anything exposed by this interface for changing the permissions on individual
items in a list (ie. the usual SPListItem.BreakRoleInheritance stuff).
Does anyone know if this is possible using the out-of-the-box web services? Or
will I have to deploy my own web service for this purpose?
Cheers,
Joe.
_______________________________________________
ozmoss mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss