Ah, that's the new client model in SP2010? It looks awesome! I have to
support both SP2010 and MOSS/WSS3 unfortunately :(


On Fri, Dec 17, 2010 at 1:01 PM, James Boman <james.bo...@i-pmo.com.au>wrote:

> 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:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *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
> ozmoss@ozmoss.com
> http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
>
>
_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to