Example XML Request
No example XML request.
Example XML Response
<response>
<data>
<organizations>
<organization>
<GUID>6FA8EE79F158F64F881EEAB3235D61A4</GUID>
<path>LDAP://OU=alpineskihouse,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=com</path>
<megabytes>2290</megabytes>
</organization>
<organization>
<GUID>5793078D84C5D84188F8BDD0B07AB5E1</GUID>
<path>LDAP://OU=contoso,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=com</path>
<megabytes>20</megabytes>
</organization>
</organizations>
</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.QueryOrganizationsByMailstore(mailStoreName, serverName, preferredDomainController, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;