locked
how to use sharepoint web service to create site and document library RRS feed

  • Question

  •  SPAdminWS.Admin admService = new
    
     SPAdminWS.Admin();
             
                admService.Credentials = System.Net.CredentialCache.DefaultCredentials;
                
                 string
     siteUrl = admService.CreateSite("http://server/sitecollectionname/"
     + sitename,
                        "Name"
    ,
                       "descritption"
    ,
                       1033,
                        "STS#2",
    
                        "domain\username"
    ,
                        "display name"
    ,
                        "email"
    ,
                        ""
    , ""
    )
    
    I'm trying to use sharepoint admin.asmx to create a new site, but receive error soapserverexception. see code above. any ideas? I did some research and one guy said the right way to create a site is to use meeting web service to create workspace. I'm quite confused here. Is there anyone can help me clarify this?
    thanks,
    chen.
    Tuesday, June 16, 2009 11:17 AM

Answers

All replies