Creating a Web site by using XML

Use the CreateWebSite procedure of the Managed IIS namespace to create a Web site.

This procedure expects to be called with impersonate="1". The procedure impersonates the caller.

Example of a request that calls the CreateWebSite procedure

	<execute namespace="Managed IIS" procedure="CreateWebSite">
		<preferredDomainController> </preferredDomainController>
	<after source="executeData" sourcePath="IISPath" destination="data" />

Input for CreateWebSite

The following input is valid for this request:

Typical response for CreateWebSite

The procedure returns the Internet Information Services (IIS) path of the new Web site in the <IISPath> element. A typical response is shown in this example.