Click or drag to resize
PostRegData Class

Implementation for calling server-side scripts which were originally designed to with with the Automation Client's SK_PostRegData function. If you are using SOLO Server (including Instant SOLO Server and Instant SOLO Server Dedicated URL), then you should use UpdateRegistration.

Note Note

Before calling the CallWebForm method, the following properties must be set:

Before calling the CallWebForm method, the following properties may be set:

Your application is responsible for enforcing what data your users are required to enter.

Caution note Caution

It is important to note that leaving any of the optional fields empty above will result in an empty value being stored. This is especially something to be aware of when setting the Overwrite property to true.

Examples
This example shows how to make a typical activation call for a PLUSManaged license:
public bool PostRegistrationData(int licenseID, string password, string email, string companyName, string firstName, string lastName, string phone)
{
    //TODO: The URL used below is for Instant SOLO Server.  You will need to update this URL if you are using Instant SOLO Server Dedicated URL, or SOLO Server.
    PostRegData registrationCall = new PostRegData("https://secure.softwarekey.com/solo/postings/postregdata.asp");
    registrationCall.LicenseID = licenseID;
    registrationCall.Password = password;
    registrationCall.Email = email;
    registrationCall.CompanyName = companyName;
    registrationCall.FirstName = firstName;
    registrationCall.LastName = lastName;
    registrationCall.Phone = phone;
    //TODO: Add additional arguments to this function and initialize additional properties here as needed.

    //TODO: Initialize the Proxy property here as appropriate if you need to support proxy server authentication.

    bool successful = registrationCall.CallWebForm();
    if (!successful)
    {
        //TODO: Evaluate the AutomationClientErrorCode, LastException, and ProxyAuthenticationRequired properties for possible reasons why the call failed.
    }

    return successful;
}
Inheritance Hierarchy

Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.18.2.0
Syntax
public class PostRegData : AutomationClientWebFormCall

The PostRegData type exposes the following members.

Constructors
  NameDescription
Public methodPostRegData
Creates a new PostRegData object.
Top
Properties
  NameDescription
Public propertyAddress1
Gets or sets the customer's street address (or line 1 of the customer's address).
Public propertyAddress2
Gets or sets the customer's second address line (i.e. apartment or suite number).
Public propertyAutomationClientErrorCode
Gets or sets the Automation Client error code.
(Inherited from AutomationClientWebFormCall.)
Public propertyCity
Gets or sets the city of the customer's address.
Public propertyCompanyName
Gets or sets the customer's company name.
Public propertyContentEncoding
Gets or sets the encoding used for the request and response (UTF-8 is the default).
(Inherited from WebFormCall.)
Public propertyContentType
Gets or sets the content type ("application/x-www-form-urlencoded" is the default).
(Inherited from WebFormCall.)
Public propertyCountry
Gets or sets the country of the customer's address.
Public propertyEmail
Gets or sets the customer's email address.
Public propertyFax
Gets or sets the customer's fax number.
Public propertyFirstName
Gets or sets the customer's first name.
Public propertyLastException
Gets or sets the last Exception that occurred when calling the web form.
(Inherited from WebFormCall.)
Public propertyLastName
Gets or sets the customer's last name.
Public propertyLicenseID
Gets or sets the License ID (required).
Public propertyNotifyPartners
Gets or sets whether the customer should be notified of partner promotions.
Public propertyNotifyProduct
Gets or sets whether the customer should be notified of product-related events, releases, and promotions.
Public propertyOverwrite
Gets or sets whether prior registration data should be overwritten when present.
Public propertyPassword
Gets or sets password (required).
Public propertyPhone
Gets or sets the customer's phone number.
Public propertyPostalCode
Gets or sets the customer's zip/postal code.
Public propertyProxy
Gets or sets the proxy server settings. Leave as null/Nothing to use the system's default proxy settings.
(Inherited from WebFormCall.)
Public propertyProxyAuthenticationRequired
Gets or sets whether the proxy server requires authentication.
(Inherited from WebFormCall.)
Public propertyRequireSsl
Gets or sets whether or not SSL is required.
(Inherited from WebFormCall.)
Public propertyResponse
Gets or sets the response returned from the server.
(Inherited from WebFormCall.)
Public propertyStateProvince
Gets or sets the state/province of the customer's address.
Public propertyStatusCode
Gets or sets the status code of the response returned from the server.
(Inherited from WebFormCall.)
Public propertyTimeout
Gets or sets the timeout (in milliseconds). The default is 30000 milliseconds (or 30 seconds).
(Inherited from WebFormCall.)
Top
Methods
See Also