Example XML Response
MPS XML Response in string format.
<response>
<data>
<preferredDomainController>AD01.fabrikam.com</preferredDomainController>
<displayName>skier1@blackcomb.com</displayName>
</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.GetModifiedOrganizations(startDate, endDate, preferredDomainController, maximumRows,sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;