Example XML Request
No example XML request.
Example XML Response
<response>
<data>
<preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController>
<statusTypeName>Enabled</statusTypeName>
<servicePlans>
<plan>
<planName>DataGold</planName>
<planDescription>Gold Data Hosting</planDescription>
<planStatus>Enabled</planStatus>
<dateCreated>2004-07-15T00:18:22.490000000</dateCreated>
<dateLastUpdated>2004-07-15T00:18:22.490000000</dateLastUpdated>
<planTypeName>DataHosting</planTypeName>
</plan>
<plan>
<planName>PlatinumMail</planName>
<planDescription>Platinum plan with full OWA</planDescription>
<planStatus>Enabled</planStatus>
<dateCreated>2004-06-30T23:29:58.677000000</dateCreated>
<dateLastUpdated>2004-06-30T23:29:58.677000000</dateLastUpdated>
<planTypeName>ExchMailbox</planTypeName>
</plan>
<plan>
<planName>GoldMail</planName>
<planDescription>Gold plan with OWA E-mail, calendaring, contacts, </planDescription>
<planStatus>Enabled</planStatus>
<dateCreated>2004-06-30T23:29:54.370000000</dateCreated>
<dateLastUpdated>2004-06-30T23:29:54.370000000</dateLastUpdated>
<planTypeName>ExchMailbox</planTypeName>
</plan>
</servicePlans>
</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.
objWS.PreAuthenticate = true;
objWS.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = objWS.QueryPlans(planTypeName, statusTypeName, categoryName, preferredDomainController, true);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;