GetService

Gets the service from the server.

Note: See the Component Reference section of this guide for a list of servies that may be available to you.

Syntax

ASCII Version:
SmartPointer<Service> getService(const char* serviceName) 
Unicode Version:
SmartPointer<Service> getService(const UnicodeString serviceName) 

Parameters

  • Name of service

Results

Returns the specific service.

Example

ASCII Version
// Get Service From Server
SmartPointer<Service> service = server- >getService("ValidateAddress"); 
Unicode Version

Same as ASCII, or:

// Get Service From Server
UnicodeString serviceName="ValidateAddress";// Or input unicode string
SmartPointer<Service> service = server->getService(serviceName);