PostEvalData Class |
Implementation for calling server-side scripts which were originally designed to with with the Automation Client's SK_PostEvalData and SK_PostEvalDataEx functions.
![]() |
---|
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.
public bool PostEvaluationData(int productID, string email, string companyName, string firstName, string lastName, string phone, out int registrationID) { //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. PostEvalData evalCall = new PostEvalData("https://secure.softwarekey.com/solo/products/trialsignup.asp"); evalCall.ProductID = productID; evalCall.Email = email; evalCall.CompanyName = companyName; evalCall.FirstName = firstName; evalCall.LastName = lastName; evalCall.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 = evalCall.CallWebForm(); if (successful) { registrationID = evalCall.RegistrationID; } else { registrationID = 0; //TODO: Evaluate the AutomationClientErrorCode, LastException, and ProxyAuthenticationRequired properties for possible reasons why the call failed. } return successful; }
Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4
The PostEvalData type exposes the following members.
Name | Description | |
---|---|---|
![]() | PostEvalData | Creates a new PostEvalData 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. |
![]() | DistributorID | Gets or sets the distributor's unique ID. |
![]() | Gets or sets the customer's email address. | |
![]() | 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. |
![]() | Phone | Gets or sets the customer's phone number. |
![]() | PostalCode | Gets or sets the customer's zip/postal code. |
![]() | ProductID | Gets or sets the Product ID designated by SOLO Server for the application being evaluated. |
![]() | 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.) |
![]() | RegistrationID | Gets the registration/evaluation ID returned after successfully registering with SOLO Server. |
![]() | 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.) |
![]() | Source | Gets or sets the customer's fax number. |
![]() | 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.) |
![]() | UserDefinedString1 | Gets or sets the User Defined String (Misc) Field 1 value. |
![]() | UserDefinedString2 | Gets or sets the User Defined String (Misc) Field 2 value. |
![]() | UserDefinedString3 | Gets or sets the User Defined String (Misc) Field 3 value. |
![]() | UserDefinedString4 | Gets or sets the User Defined String (Misc) Field 4 value. |
![]() | UserDefinedString5 | Gets or sets the User Defined String (Misc) Field 5 value. |
![]() | UserDefinedString6 | Gets or sets the User Defined String (Misc) Field 6 value. |
![]() | UserDefinedString7 | Gets or sets the User Defined String (Misc) Field 7 value. |
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.) |