GetService

Gets the service (such as ValidateAddress) from the server.

Syntax

Function getService(serviceName As String) As Service 

Parameters

  • serviceName - the name of the service which the client requires

Results

The requested service or NULL if the service does not exist.

Exceptions

  • ERROR_FAIL_TO_GET_SERVICE — if there is no connection to the server.

Example

Dim server As New G1CLIENTLib.server 
Dim service As G1CLIENTLib.service 
...
'get the service from the server 
Set service = server.getService("ValidateAddress")