Register Class |
Namespace: com.softwarekey.Client.WebService.XmlLicenseService
The Register type exposes the following members.
Name | Description | |
---|---|---|
Register | Creates a new Register object. | |
Register(XmlLicenseService) | Creates a new Register object with a specified web service client (XmlLicenseService) 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). | |
City | Gets or sets the city of the customer's address. | |
ClassName | Gets or sets the class name of the WebServiceClient object. (Inherited from WebServiceCall.) | |
Company | Gets or sets the customer's company name. | |
Country | Gets or sets the country of the customer's address. | |
CustomerID | Gets the Customer ID to which the License ID belongs. | |
Gets or sets the customer's email address. | ||
EncryptionKey | Gets or sets the author encryption key data. (Inherited from WebServiceCall.) | |
ErrorMessage | Gets or sets the error message returned by the web service method call. (See http://www.softwarekey.com/go/?ID=20 for a list of possible values.) (Inherited from WebServiceCall.) | |
EuropeanUnionVATNumber | Gets or sets the customer's European Union VAT number. | |
Fax | Gets or sets the customer's fax number. | |
FirstName | Gets or sets the customer's first name. | |
LastError | Gets or sets the last error which occurred. (Inherited from WebServiceCall.) | |
LastName | Gets or sets the customer's last name. | |
LicenseeEmail | Gets or sets the licensee's email address. | |
LicenseeName | Gets or sets the licensee's name. | |
LicenseID | Gets or sets the License ID (requires a value for the Password property when non-zero). | |
MethodName | Gets or sets the name of the method which will be called from the WebServiceClient object. (Inherited from WebServiceCall.) | |
NewPassword | Gets or sets the customer's new password (leave empty unless you need to reset the customer's password). | |
Notes | Gets or sets notes about the customer. | |
Password | 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. | |
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 (required when SerialNumber is not empty). | |
RequireSsl | Gets or sets whether or not SSL certificate validation to check. (Inherited from WebServiceCall.) | |
ResultCode | Gets or sets the result code returned by the web service method call. (See http://www.softwarekey.com/go/?ID=20 for a list of possible values.) (Inherited from WebServiceCall.) | |
SerialNumber | Gets or sets the Serial number (requires a value for the ProductID property when not empty). | |
SessionCode | Gets or sets the randomized session code (used to deter replay attacks). (Inherited from WebServiceCall.) | |
SessionCodeValidation | Gets or sets whether or not session code validation should be done automatically. (Inherited from WebServiceCall.) | |
StateProvince | Gets or sets the state/province of the customer's address. | |
UseDigitalSignature | Overrides the UseDigitalSignature property to reflect the fact that this web service method does not support digital signatures. (Overrides WebServiceCallUseDigitalSignature.) | |
UseEncryption | Overrides the UseEncryption property to reflect the fact that this web service method does not support encryption. (Overrides WebServiceCallUseEncryption.) | |
WebServiceClient | 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.) | |
WebServiceResponse | Gets or set the XmlNode object reference for the root XML node of the web service response. (Inherited from WebServiceCall.) |
Name | Description | |
---|---|---|
AppendSessionCode(String) | Appends the SessionCode value to an XML request string depending on the SessionCodeValidation setting, and returns the updated XML string (Inherited from WebServiceCall.) | |
AppendSessionCode(XmlDocument) | Appends the SessionCode value to an XmlDocument depending on the SessionCodeValidation setting, and returns the updated XML string (Inherited from WebServiceCall.) | |
CallWebService | Calls the web service method. (Inherited from WebServiceCall.) | |
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.) | |
GenerateEncryptedRequest | Generates an encrypted web service call XML request string. (Inherited from WebServiceCall.) | |
GeneratePlainTextRequest | Generates a plain-text XML request string for Register calls (Overrides WebServiceCallGeneratePlainTextRequest.) | |
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.) | |
ProcessResponse(String) | Processes a web service response XML string. (Inherited from WebServiceCall.) | |
ProcessResponse(XmlNode) | (Overrides WebServiceCallProcessResponse(XmlNode).) | |
ResetSessionCode | Sets the SessionCode value to a new, randomized value. (Inherited from WebServiceCall.) | |
ToString | (Inherited from Object.) | |
ValidateWebServiceResponseFormat | 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 |
---|
This function will only update a customer's registration if the customer is not already registered. If you wish to update registration details even when the customer is already registered, use UpdateRegistration instead. |
Note |
---|
Before calling the CallWebService method, the LicenseID and Password properties must be set, or the SerialNumber and ProductID properties must be set. |
public bool RegisterCustomer(int licenseID, string password, string company, string firstName, string lastName, string email) { Register registration = new Register(); registration.LicenseID = licenseID; registration.Password = password; registration.Company = company; registration.FirstName = firstName; registration.LastName = lastName; registration.Email = email; if (!registration.CallWebService()) { //TODO: check the LastError property and add error reporting here! return false; } //TODO: Add your custom, post-registration logic here! return true; }