Service part

Service parts provide requesters with access to the functions in the service. A requester can be a local or remote program, handler, library, or another service.

For more information about Service parts, see Introduction to Service parts.

Syntax

Syntax for the Service part
serviceName
The name that you assign to the service.
interfaceName
The name of the interface that this service implements. This variable is a guarantee that the service contains every function described in the interface.
serviceContents
Services can contain functions, variables, constants, and use declarations. Functions can include the private qualifier so that the requester cannot access them. Variables and constants are not available to the requester.

Example

The following example shows a simple service:
  Service EchoString
    function returnString 
      (inputString string in) 
      returns (string)
      return (inputString);
    end
  end

Feedback