Click or drag to resize
ValidateRegistration Class
Implements the XmlLicenseService web service's ValidateRegistration method to retrieve and check customer registration information.
Inheritance Hierarchy

Namespace: com.softwarekey.Client.WebService.XmlLicenseService
Assembly: PLUSManaged (in PLUSManaged.dll) Version:
public class ValidateRegistration : WebServiceCall

The ValidateRegistration type exposes the following members.

Public methodValidateRegistration
Creates a new ValidateRegistration object.
Public methodValidateRegistration(XmlLicenseService)
Creates a new ValidateRegistration object with a specified web service client (XmlLicenseService) object.
Public propertyAddress1
Gets the customer's street address (or line 1 of the customer's address).
Public propertyAddress2
Gets the customer's second address line (i.e. apartment or suite number).
Public propertyCity
Gets the city of the customer's address.
Public propertyClassName
Gets or sets the class name of the WebServiceClient object.
(Inherited from WebServiceCall.)
Public propertyCompany
Gets the customer's company name.
Public propertyCountry
Gets the country of the customer's address.
Public propertyCustomerID
Gets the Customer ID, which uniquely identifies the customer to which this License ID belongs.
Public propertyEmail
Gets the customer's email address.
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 for a list of possible values.)
(Inherited from WebServiceCall.)
Public propertyEuropeanUnionVATNumber
Gets the customer's European Union VAT number.
Public propertyFax
Gets the customer's fax number.
Public propertyFirstName
Gets the customer's first name.
Public propertyLastError
Gets or sets the last error which occurred.
(Inherited from WebServiceCall.)
Public propertyLastName
Gets the customer's last name.
Public propertyLicenseeEmail
Gets the licensee's email address.
Public propertyLicenseeName
Gets the licensee's name.
Public propertyLicenseID
Gets or sets the License ID (requires a value for the Password property when non-zero).
Public propertyMethodName
Gets or sets the name of the method which will be called from the WebServiceClient object.
(Inherited from WebServiceCall.)
Public propertyNotes
Gets notes about the customer.
Public propertyPassword
Gets or sets the password (required when LicenseID is set to a non-zero value). This may be set to the activation password assigned to the license, or the customer password, in SOLO Server.
Public propertyPhone
Gets the customer's phone number.
Public propertyPostalCode
Gets the customer's zip/postal code.
Public propertyProdOptionID
Gets the Product Option ID with which the License ID was created.
Public propertyProductID
Gets or sets the Product ID (required when SerialNumber is not empty).
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 for a list of possible values.)
(Inherited from WebServiceCall.)
Public propertySerialNumber
Gets or sets the Serial number (requires a value for the ProductID property when not empty).
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 propertyStateProvince
Gets the state/province of the customer's address.
Public propertyUseDigitalSignature
Overrides the UseDigitalSignature property to reflect the fact that this web service method does not support digital signatures.
(Overrides WebServiceCallUseDigitalSignature.)
Public propertyUseEncryption
Overrides the UseEncryption property to reflect the fact that this web service method does not support encryption.
(Overrides WebServiceCallUseEncryption.)
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.)
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 (Inherited from Object.)
Protected methodFinalize (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 ValidateRegistration calls
(Overrides WebServiceCallGeneratePlainTextRequest.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodProcessResponse(String)
Processes a web service response XML string.
(Inherited from WebServiceCall.)
Public methodProcessResponse(XmlNode) (Overrides WebServiceCallProcessResponse(XmlNode).)
Public methodResetSessionCode
Sets the SessionCode value to a new, randomized value.
(Inherited from WebServiceCall.)
Public methodToString (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.)

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

Note Note

Before calling the CallWebService method, the LicenseID and Password properties must be set, or the SerialNumber and ProductID properties must be set.

This example shows how to make a typical ValidateRegistration call
public bool CheckRegistration(int licenseID, string password)
    ValidateRegistration registrationChecker = new ValidateRegistration();
    registrationChecker.LicenseID = licenseID;
    registrationChecker.Password = password;

    if (!registrationChecker.CallWebService())
        //TODO: check the LastError property and add error reporting here!
        return false;

    //TODO: Add your custom logic here!

    return true;
See Also