Introduction to Service parts

You can use service parts to define a service and provide requesters with access to the functions that are coded in that part.

A requester is logic that is external to the server and that accesses one or more functions that are defined in a service. The requester can be a program, handler, library, or another service, and it can be local or remote.

To access a service, you create a variable that is based on either a Service part or, in typically, an Interface part. The interface provides EGL with a list of the functions that the service provides. To handle the connectivity, use the EGL deployment descriptor file. The deployment descriptor file describes how other applications can use a Service part from your application, or how your application uses an external service. For more information about Interface parts, see Introduction to Interface parts.

Function calls

You can call a service function in the same way as you would call a function from a library, but you must first declare a variable that is based on the service:
myEcho EchoString;
result STRING;

result = myEcho.returnString("Hello!");

Feedback