Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 556291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:54:16+00:00 2026-05-13T11:54:16+00:00

In SharePoint 2010, there is a new method CreateWeb in the Sites web service

  • 0

In SharePoint 2010, there is a new method CreateWeb in the Sites web service with the purpose to create new SharePoint sub sites. There are, however, a lot of issues with it – well, that is my experience at least. Here is the code that should utilize the web service and its method properly:

Uri site = new Uri("http://sp2010site/"); 
string webServicePath = "_vti_bin/Sites.asmx";
string webServiceUrl = Path.Combine(site.AbsoluteUri, webServicePath);

Sites webService = new Sites();
webService.Credentials = CredentialCache.DefaultNetworkCredentials;
webService.Url = webServiceUrl;

//the following line creates the sub site
string result = webService.CreateWeb("newsite", "New Site", "Site desc", "STS#0", 
    1033, true, 1033, true, 1033, true, true, true, true, true, true, true);

The following code returns Soap exception if something wrong happened (e.g. a sub site with the address “newsite” already exists, or the specified template doesn’t exist).

If everything is ok, an InvalidOperation exception is fired with the message “There is an error in XML document (1, 310).”, but the site is actually created!

If everything is ok, but I use my own solution instead of the non-default SharePoint template (such as the Team site, i.e. STS#0), I get a Soap exception and the site does not get created.

This has been a terrible experience so far. Please post your experiences with the sub site creation in SP 2010, and even better, post your resolutions to these problems if you have any. Cheers all!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:54:16+00:00Added an answer on May 13, 2026 at 11:54 am

    Steps in SP2010 beta something to create a [sub] site from a [custom] template:

    • Activate your site template
    • Browse to betasoftwaresucks/_layouts/templatepick.aspx
    • Click on the “Custom” tab. You should be able to see your template
    • Open up a tool that can inspect the DOM (e.g. IE Developer Tools or Firebug). The DOM is modified dynamically so just viewing the HTML just won’t work unless you’re interested in one of the default templates in the default selected tab.
    • Find the value of the option element representing your template. It will look like “{guid}#templatename”. Make sure the “Custom” tab is still open or you might not be able to find this.
    • Use that value as the template parameter to CreateWeb.

    [I roll my SP SOAP “by hand” so it’s trivial to see the full request and response.]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 279k
  • Answers 279k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Go to Tools > Options > Debugging > Symbols and… May 13, 2026 at 3:31 pm
  • Editorial Team
    Editorial Team added an answer In itself, a call to contains is safe. The problem… May 13, 2026 at 3:31 pm
  • Editorial Team
    Editorial Team added an answer I think you're looking for .vsprops files. They're comparable to… May 13, 2026 at 3:31 pm

Related Questions

I'm currently in the process of investigating TFS 2010, as it's been agreed that
Now that the Sharepoint conference has started and at least some of the NDA
As far as I know both FireFox and Safari can not work with Kerberos
What kind of features does the upcoming SharePoint 2010 have in regards to functionality
I noticed in VS2010 beta 2 that all the templates are for Sharepoint 2010

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.