Example XML Response
MPS XML Response in string format.
<response>
<data>
<customerTypeName>BusinessUser</customerTypeName>
<path>LDAP://CN=user@alpineskihouse.com,ou=alpineskihouse,OU=Wh,OU=Hosting,DC=fabrikam,DC=Com</path>
<planName>GoldMail</planName>
<preferredDomainController>AD01.fabrikam.com</preferredDomainController>
<properties>
<property name="msExchMailboxFolderSet">
<value>108303</value>
</property>
</properties>
<mail>
<disableIMAP>0</disableIMAP>
<disablePOP>0</disablePOP>
<disableHTTP>0</disableHTTP>
<size>20000</size>
</mail>
</data>
</response>
Typical C# Usage
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
hostedExch.PreAuthenticate = true;
hostedExch.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = hostedExch.ChangeUserMailboxPlan(path,planName, preferredDomainController,userType);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml