Click or drag to resize
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.

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.

Examples
This example shows how to make a typical activation call for a PLUSManaged license:
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;
}
Inheritance Hierarchy

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

The PostEvalData type exposes the following members.

Constructors
  NameDescription
Public methodPostEvalData
Creates a new PostEvalData 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 propertyDistributorID
Gets or sets the distributor's unique ID.
Public propertyEmail
Gets or sets the customer's email address.
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 propertyPhone
Gets or sets the customer's phone number.
Public propertyPostalCode
Gets or sets the customer's zip/postal code.
Public propertyProductID
Gets or sets the Product ID designated by SOLO Server for the application being evaluated.
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 propertyRegistrationID
Gets the registration/evaluation ID returned after successfully registering with SOLO Server.
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 propertySource
Gets or sets the customer's fax number.
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.)
Public propertyUserDefinedString1
Gets or sets the User Defined String (Misc) Field 1 value.
Public propertyUserDefinedString2
Gets or sets the User Defined String (Misc) Field 2 value.
Public propertyUserDefinedString3
Gets or sets the User Defined String (Misc) Field 3 value.
Public propertyUserDefinedString4
Gets or sets the User Defined String (Misc) Field 4 value.
Public propertyUserDefinedString5
Gets or sets the User Defined String (Misc) Field 5 value.
Public propertyUserDefinedString6
Gets or sets the User Defined String (Misc) Field 6 value.
Public propertyUserDefinedString7
Gets or sets the User Defined String (Misc) Field 7 value.
Top
Methods
  NameDescription
Public methodCallWebForm
Calls the Automation Client web page.
(Overrides AutomationClientWebFormCallCallWebForm.)
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 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 methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTryParseValueFromResponse(String, Int32)
Tries to parse a 32 bit integer value from the Response.
(Inherited from AutomationClientWebFormCall.)
Public methodTryParseValueFromResponse(String, String)
Tries to parse a string value from the Response.
(Inherited from AutomationClientWebFormCall.)
Top
See Also