Share via


Windows-based Hosting::RemovePlansFromCustomer

This procedure removes service plans from a customer organizational unit. Removes service plans from a customer organizational unit and releases any resources as necessary.

Arguments

Input Arguments Description

<orgLdapPath>

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

<plansXmlString>

One or more valid service plans that will be assigned to the customer.

<preferredDomainController>

<sendCredentials>

Remarks

Method Syntax

 
public string   RemovePlansFromCustomer( 
                                        string orgLdapPath, 
                                        string plansXmlString, 
                                        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> 
      <planName>WebBasic</planName> 
    </plans> 
  </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.RemovePlansFromCustomer(orgLdapPath, plansXmlString, 
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