Typical C# Usage
Typical usage for the QueryAllServerPools method is as
follows:
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
LiveCommunicationRM.PreAuthenticate = true;
LiveCommunicationRM.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = LiveCommunicationRM.QueryAllServerPools(ldapPath, preferredDomainController, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;
Example XML Response
The following is an example of an XML response from the
QueryAllServerPools method:
<response>
<data>
<preferredDomainController>AD01.fabrikam.com
</preferredDomainController>
<serverPools>
<serverPool provisionable="1">
<GUID>4798EAB71E41F64AAFB1F5F64E44AEDA</GUID>
<name>LCSPool01</name>
<total>200000</total>
<free>199950</free>
<path>LDAP://CN=LC Services,CN=Microsoft,CN=LCSPool01,
CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=NCES,
DC=COM</path>
</serverPool>
</serverPools>
</data>
</response>