Example XML Response
MPS XML Response in string format.
<response>
<data>
<path>LDAP://CN=bill@litwareinc.com,OU=litwareinc,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</path>
<name>bill</name>
<SMTPDomain>Suevanity2.com</SMTPDomain>
<createSMTPDomain />
<preferredDomainController>AD01.fabrikam.com</preferredDomainController>
</data>
</response>
Typical Usage: (C#)
//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. CreateConsumerVanityDomain(ldapPath, userName, smtpDomain, preferredDomainController)
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;