UpdateRegistration Class |
Namespace: com.softwarekey.Client.WebService.XmlLicenseService
The UpdateRegistration type exposes the following members.
Name | Description | |
---|---|---|
![]() | UpdateRegistration | Creates a new UpdateRegistration object. |
![]() | UpdateRegistration(XmlLicenseService) | Creates a new UpdateRegistration 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). (Inherited from Register.) |
![]() | Address2 | Gets or sets the customer's second address line (i.e. apartment or suite number). (Inherited from Register.) |
![]() | City | Gets or sets the city of the customer's address. (Inherited from Register.) |
![]() | ClassName | Gets or sets the class name of the WebServiceClient object. (Inherited from WebServiceCall.) |
![]() | Company | Gets or sets the customer's company name. (Inherited from Register.) |
![]() | Country | Gets or sets the country of the customer's address. (Inherited from Register.) |
![]() | CustomerID | Gets the Customer ID to which the License ID belongs. (Inherited from Register.) |
![]() | Gets or sets the customer's email address. (Inherited from Register.) | |
![]() | 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. (Inherited from Register.) |
![]() | Fax | Gets or sets the customer's fax number. (Inherited from Register.) |
![]() | FirstName | Gets or sets the customer's first name. (Inherited from Register.) |
![]() | LastError | Gets or sets the last error which occurred. (Inherited from WebServiceCall.) |
![]() | LastName | Gets or sets the customer's last name. (Inherited from Register.) |
![]() | LicenseeEmail | Gets or sets the licensee's email address. (Inherited from Register.) |
![]() | LicenseeName | Gets or sets the licensee's name. (Inherited from Register.) |
![]() | LicenseID | Gets or sets the License ID (requires a value for the Password property when non-zero). (Inherited from Register.) |
![]() | 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). (Inherited from Register.) |
![]() | Notes | Gets or sets notes about the customer. (Inherited from Register.) |
![]() | 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. (Inherited from Register.) |
![]() | Phone | Gets or sets the customer's phone number. (Inherited from Register.) |
![]() | PostalCode | Gets or sets the customer's zip/postal code. (Inherited from Register.) |
![]() | ProductID | Gets or sets the Product ID (required when SerialNumber is not empty). (Inherited from Register.) |
![]() | 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). (Inherited from Register.) |
![]() | 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. (Inherited from Register.) |
![]() | UseDigitalSignature | Overrides the UseDigitalSignature property to reflect the fact that this web service method does not support digital signatures. (Inherited from Register.) |
![]() | UseEncryption | Overrides the UseEncryption property to reflect the fact that this web service method does not support encryption. (Inherited from Register.) |
![]() | 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 (Inherited from Register.) |
![]() | 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) | (Inherited from Register.) |
![]() | 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.
![]() |
---|
This function will always update a customer's registration, even if the customer is already registered. If you wish to only update registration details when the customer is unregistered, use Register instead. |
![]() |
---|
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) { UpdateRegistration registration = new UpdateRegistration(); 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; }