Creating an FTP site by using XML

Use the CreateFTPSite procedure of the Managed IIS namespace to create a File Transfer Protocol (FTP) site.

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

Example of a request that calls the CreateFTPSite procedure

<request>
   <procedure>
	 <execute namespace="Managed IIS" procedure="CreateFTPSite">
	 <executeData>
		 <description>www.myftp.com</description>
		 <diskMegabytes>10</diskMegabytes>
		 <owner>LDAP://ou=Reseller,ou=Hosting,dc=contoso,dc=com</owner>
		 <policyName>reseller</policyName>
		 <StartOnCreate>0</StartOnCreate>
		 <preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
	 </executeData>
	 <after source="executeData" sourcePath="IISPath"
		destination="data" mode="insert" />
	 </execute>
   </procedure>
</request>

Input for CreateFTPSite

The following input is valid for this request:

Typical response for CreateFTPSite

This procedure returns the IIS path of the FTP site.

<response>
 <data>
   <IISPath>IIS://MyServer/MSFTPSVC/5</IISPath>
 </data>

Important