How to get Content types
        Posted  
        
            by Gaby
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Gaby
        
        
        
        Published on 2010-04-20T13:17:29Z
        Indexed on 
            2010/04/20
            16:23 UTC
        
        
        Read the original article
        Hit count: 454
        
Hi,
I'm developing a windows application, that talks to SharePoint via its built in web services, and i want to get all content types available on a SharePoint site,
I'm trying to use
Web.Webs WebsService = new Web.Webs(); WebsService.Credentials=credentials; WebsService.Url="url of the web service"; XmlNode listOfContentTypes = WebsService.GetContentTypes();
If credentials have administrator privileges i can get the list of all the content types available, But if credentials don't have administrator privileges a 401 exception is thrown (not enought permission).
My question is:
How can i get all content types available on a SharePoint site if i don't have administrator priviliges?
© Stack Overflow or respective owner