Example XML Request
No example XML request.
Example XML Response
MPS XML Response in string format; shown for format only,
content may vary:
<response>
<data>
<GUID>5793078D84C5D84188F8BDD0B07AB5E1</GUID>
<preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController>
<mailboxes>
<mailbox>
<GUID>2485e2f23bae4562be7ba3952228e697</GUID>
<path>LDAP://CN=ExchUser1,OU=ExchOrg1,DC=raven01,DC=com</path>
<kilobytes>10</kilobytes>
</mailbox>
</mailboxes>
<publicFolders>
<publicFolder>
<GUID>2485e2f23bae4562be7ba3952228e777</GUID>
<folderPath>frog</folderPath>
<megabytes>6</megabytes>
</publicFolder>
</publicFolders>
</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.
ExchRM.PreAuthenticate = true;
ExchRM.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = ExchRM.QueryConsumersByOrganization(orgPath,OrgGUID, preferredDomainController, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;