Share via


Windows-based Hosting::QueryCustomerPlans

This procedure returns a list of plans for a specific customer.

Arguments

Input Arguments Description

<orgLdapPath>

The Lightweight Directory Access Protocol (LDAP) path of the organization.

<preferredDomainController>

<sendCredentials>

Remarks

Method Syntax

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

Sample Code

Example XML Request

No example XML request.

Example XML Response

 
<response> 
  <data> 
    <orgLdapPath>LDAP://OU=WingTipToys,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</orgLdapPath> 
    <preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController> 
    <connect Provider="SQLOLEDB" Server="MPS01-WH" Database="HeCustomerDb" Trusted_Connection="yes"> 
    </connect> 
    <guid>AB70D212-1F9D-B348-8FD9-024A3DCDA1ED</guid> 
    <statusTypeName>Enabled</statusTypeName> 
    <returnCode>0</returnCode> 
    <rowSet> 
      <row planName="DataBasic" planDescription="Basic Data Hosting Plan" planStatus="Enabled" dateCreated="2004-07-15T17:11:34.760000000" dateLastUpdated="2004-07-15T17:11:34.760000000" /> 
    </rowSet> 
    <servicePlans> 
      <plan> 
        <planName>DataBasic</planName> 
        <planDescription>Basic Data Hosting Plan</planDescription> 
        <planStatus>Enabled</planStatus> 
        <dateCreated>2004-07-15T17:11:34.760000000</dateCreated> 
        <dateLastUpdated>2004-07-15T17:11:34.760000000</dateLastUpdated> 
      </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.QueryCustomerPlans(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

See also

Tasks

Windows-based Hosting::AddPlansToCustomer
Windows-based Hosting::RemovePlansFromCustomer