Click or drag to resize
DeactivateInstallation Class
Implements the XmlActivationService web service's DeactivateInstallation method to validate the status of an Installation ID.
Inheritance Hierarchy
SystemObject
  com.softwarekey.Client.WebServiceWebServiceCall
    com.softwarekey.Client.WebService.XmlActivationServiceDeactivateInstallation

Namespace: com.softwarekey.Client.WebService.XmlActivationService
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
public class DeactivateInstallation : WebServiceCall

The DeactivateInstallation type exposes the following members.

Constructors
  NameDescription
Public methodDeactivateInstallation(AuthorEncryptionKey)
Creates a new DeactivateInstallation object.
Public methodDeactivateInstallation(XmlActivationService, AuthorEncryptionKey)
Creates a new DeactivateInstallation object.
Top
Properties
  NameDescription
Public propertyClassName
Gets or sets the class name of the WebServiceClient object.
(Inherited from WebServiceCall.)
Public propertyEncryptionKey
Gets or sets the author encryption key data.
(Inherited from WebServiceCall.)
Public propertyErrorMessage
Gets or sets the error message returned by the web service method call. (See http://www.softwarekey.com/go/?ID=20 for a list of possible values.)
(Inherited from WebServiceCall.)
Public propertyInstallationID
Gets or sets the Installation ID (required), which is a unique identifier for the given activation which was issued.
Public propertyLastError
Gets or sets the last error which occurred.
(Inherited from WebServiceCall.)
Public propertyMethodName
Gets or sets the name of the method which will be called from the WebServiceClient object.
(Inherited from WebServiceCall.)
Public propertyRequireSsl
Gets or sets whether or not SSL certificate validation to check.
(Inherited from WebServiceCall.)
Public propertyResultCode
Gets or sets the result code returned by the web service method call. (See http://www.softwarekey.com/go/?ID=20 for a list of possible values.)
(Inherited from WebServiceCall.)
Public propertySessionCode
Gets or sets the randomized session code (used to deter replay attacks).
(Inherited from WebServiceCall.)
Public propertySessionCodeValidation
Gets or sets whether or not session code validation should be done automatically.
(Inherited from WebServiceCall.)
Public propertyUseDigitalSignature
Gets or sets whether or not a digital signature is to be used or is required for the web service call. (This can only be set to false if UseEncryption is already set to false.)
(Inherited from WebServiceCall.)
Public propertyUseEncryption
Gets or sets whether or not encryption is to be used or is required for the web service call.
(Inherited from WebServiceCall.)
Public propertyWebServiceClient
Gets or sets the SoapHttpClientProtocol object (.NET Framework) or the XmlWebService object (.NET Standard 2.0) used to perform the web service method call.
(Inherited from WebServiceCall.)
Public propertyWebServiceResponse
Gets or set the XmlNode object reference for the root XML node of the web service response.
(Inherited from WebServiceCall.)
Top
Methods
  NameDescription
Protected methodAppendSessionCode(String)
Appends the SessionCode value to an XML request string depending on the SessionCodeValidation setting, and returns the updated XML string
(Inherited from WebServiceCall.)
Protected methodAppendSessionCode(XmlDocument)
Appends the SessionCode value to an XmlDocument depending on the SessionCodeValidation setting, and returns the updated XML string
(Inherited from WebServiceCall.)
Public methodCallWebService
Calls the web service method.
(Inherited from WebServiceCall.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerateEncryptedRequest
Generates an encrypted web service call XML request string.
(Inherited from WebServiceCall.)
Public methodGeneratePlainTextRequest
Generates a plain-text XML request string for DeactivateInstallation calls
(Overrides WebServiceCallGeneratePlainTextRequest.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcessResponse(String)
Processes a web service response XML string.
(Inherited from WebServiceCall.)
Public methodProcessResponse(XmlNode)
Processes a web service response.
(Overrides WebServiceCallProcessResponse(XmlNode).)
Public methodResetSessionCode
Sets the SessionCode value to a new, randomized value.
(Inherited from WebServiceCall.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodValidateWebServiceResponseFormat
Verifies the format of the response received is such that expected and required content can be found and parsed.
(Inherited from WebServiceCall.)
Top
Remarks

The XmlActivationService documentation should be referenced for the most current information.

Caution note Caution

If you wish to call these web services for PLUSManaged License implementations, we recommend you use the License.DeactivateInstallation method, which implements this call for you.

Caution note Caution

Any Product Options in SOLO Server which you intend to use when issuing License IDs which will be validated with this method must have the "Issue Installation ID" option enabled, and must be activated with ActivateInstallation or ActivateInstallationLicenseFile. Please refer to the SOLO Server manual for details.

Examples
This example shows how to make a typical deactivation call for a Protection PLUS 5 license:
public bool Deactivate(AuthorEncryptionKey encryptionKey,
    string installationId, ref LicenseError lastError)
{
    //make sure we have an Installation ID to use first
    if (string.IsNullOrEmpty(installationId))
    {
        lastError = new LicenseError(LicenseError.ERROR_INSTALLATIONID_REQUIRED);
        return false;
    }

    DeactivateInstallation ws = new DeactivateInstallation(encryptionKey);
    ws.InstallationID = installationId;

    XmlActivationService client = new XmlActivationService();
    // If you are using SOLO Server Dedicated URL or a self-hosted instance of SOLO Server,
    // set the client.Url property here.  You may also configure proxy settings on this object here, if necessary.
    ws.WebServiceClient = client;

    if (!ws.CallWebService())
    {
        //If you wish to revoke the local license, you can add code to do so here.
        lastError = ws.LastError;
        return false;
    }

    return true;
}
See Also