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 SOLO Server Shared URL and SOLO Server Dedicated URL), then you should use UpdateRegistration.
![]() |
---|
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.
![]() |
---|
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. |
public bool PostRegistrationData(int licenseID, string password, string email, string companyName, string firstName, string lastName, string phone) { //TODO: The URL used below is for SOLO Server Shared URL. 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; }
Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4
The PostRegData type exposes the following members.
Name | Description | |
---|---|---|
![]() | PostRegData | Creates a new PostRegData object. |
Name | Description | |
---|---|---|
![]() | Address1 | Gets or sets the customer's street address (or line 1 of the customer's address). |
![]() | Address2 | Gets or sets the customer's second address line (i.e. apartment or suite number). |
![]() | AutomationClientErrorCode | Gets or sets the Automation Client error code. (Inherited from AutomationClientWebFormCall.) |
![]() | City | Gets or sets the city of the customer's address. |
![]() | CompanyName | Gets or sets the customer's company name. |
![]() | ContentEncoding | Gets or sets the encoding used for the request and response (UTF-8 is the default). (Inherited from WebFormCall.) |
![]() | ContentType | Gets or sets the content type ("application/x-www-form-urlencoded" is the default). (Inherited from WebFormCall.) |
![]() | Country | Gets or sets the country of the customer's address. |
![]() | Gets or sets the customer's email address. | |
![]() | Fax | Gets or sets the customer's fax number. |
![]() | FirstName | Gets or sets the customer's first name. |
![]() | LastException | Gets or sets the last Exception that occurred when calling the web form. (Inherited from WebFormCall.) |
![]() | LastName | Gets or sets the customer's last name. |
![]() | LicenseID | Gets or sets the License ID (required). |
![]() | NotifyPartners | Gets or sets whether the customer should be notified of partner promotions. |
![]() | NotifyProduct | Gets or sets whether the customer should be notified of product-related events, releases, and promotions. |
![]() | Overwrite | Gets or sets whether prior registration data should be overwritten when present. |
![]() | Password | Gets or sets password (required). |
![]() | Phone | Gets or sets the customer's phone number. |
![]() | PostalCode | Gets or sets the customer's zip/postal code. |
![]() | Proxy | Gets or sets the proxy server settings. Leave as null/Nothing to use the system's default proxy settings. (Inherited from WebFormCall.) |
![]() | ProxyAuthenticationRequired | Gets or sets whether the proxy server requires authentication. (Inherited from WebFormCall.) |
![]() | RequireSsl | Gets or sets whether or not SSL is required. (Inherited from WebFormCall.) |
![]() | Response | Gets or sets the response returned from the server. (Inherited from WebFormCall.) |
![]() | StateProvince | Gets or sets the state/province of the customer's address. |
![]() | StatusCode | Gets or sets the status code of the response returned from the server. (Inherited from WebFormCall.) |
![]() | Timeout | Gets or sets the timeout (in milliseconds). The default is 30000 milliseconds (or 30 seconds). (Inherited from WebFormCall.) |
Name | Description | |
---|---|---|
![]() | CallWebForm | Calls the Automation Client web page. (Overrides AutomationClientWebFormCallCallWebForm.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
![]() | TryParseValueFromResponse(String, Int32) | Tries to parse a 32 bit integer value from the Response. (Inherited from AutomationClientWebFormCall.) |
![]() | TryParseValueFromResponse(String, String) | Tries to parse a string value from the Response. (Inherited from AutomationClientWebFormCall.) |