Share via


Windows-based Hosting::QueryServicesByCustomer

This procedure returns a listing of plans and provisioned services for a Customer organizational Unit.

Arguments

Input Arguments Description

<orgLdapPath>

The Lightweight Directory Access Protocol (LDAP) path of the organization that will own the Web site.

<preferredDomainController>

<sendCredentials>

Remarks

Method Syntax

 
public string   QueryServicesByCustomer( 
                                        string orgLdapPath, 
                                        string preferredDomainController 
                                        bool sendCredentials) 
 

Sample Code

Example XML Request

No example XML request.

Example XML Response

 
<response> 
  <data> 
    <orgLdapPath>LDAP://OU=Cust001,OU=Res001,OU=Hosting,DC=fabrikam,DC=Com</orgLdapPath> 
    <preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController> 
    <plans> 
      <plan>DataBasic</plan> 
      <plan>SharePointBasic</plan> 
      <plan>WebBasic</plan> 
    </plans> 
    <services> 
      <SQLDatabases /> 
      <sharePointSites /> 
      <websites /> 
    </services> 
  </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.QueryServicesByCustomer(orgLdapPath, preferredDomainController, true); 
 
        // set the response XML to match the return from MPF 
        responseXml.LoadXml(response); 
        this.mpsResponse.Document = responseXml; 
 

Applies To

Managed Windows-based Hosting Web Service for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0