Example XML Request
No example XML request.
Example XML Response
The following is an example of an XML response for the
GetUserProperties method:
<response>
<data>
<path>LDAP://CN=jimc@alpineskihouse.com,OU=alpineskihouse,
OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</path>
<preferredDomainController>AD01.fabrikam.COM
</preferredDomainController>
<homeServerPool>CN=LCSPool02,CN=Pools,CN=RTC Service,CN=Microsoft,
CN=System,DC=fabrikam,DC=com</homeServerPool>
<federationEnabled>true</federationEnabled>
<internetAccessEnabled>true</internetAccessEnabled>
<archivingEnabled>1</archivingEnabled>
<planName>LCSBasic</planName>
</data>
</response>
Typical C# Usage
Typical usage for the GetUserProperties 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.
LiveCommunication.PreAuthenticate = true;
LiveCommunication.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = LiveCommunication.GetUserProperties(path,
preferredDomainController, sendCredentials);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;