Example XML Response
MPS XML Response in string format:
<response>
<data>
<sharePointSites>
<sharePointSite name="example4" location="http://www.example4.com"/>
<sharePointSite name="example5" location="http://www.example5.com"/>
<sharePointSite name="example6" location="http://www.example6.com"/>
<sharePointSite name="wh01-Site6" location="http://www.org5.com"/>
</sharePointSites>
</data>
</response>
Typical Usage: (C#)
//Get user name and password.
string userName = this.Request.ServerVariables.Get("AUTH_USER");
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD");
//Set credentials.
webserviceWSS.PreAuthenticate = true;
webserviceWSS.Credentials = new NetworkCredential(userName,pass);
lblMsg.InnerHtml = mpsResponseHeaderLabel;
//Display response.
this.mpsResponse.DocumentSource = "";
response = webserviceWSS.QuerySitesByCustomer(orgLdapPath, preferredDomainController);
// set the response XML to match the return from MPF
responseXml.LoadXml(response);
this.mpsResponse.Document = responseXml;
lblDone.InnerText = successMsg;