Service access outside of Rich UI

Except in a Rich UI handler or library, service access in EGL is synchronous: the requester waits for a response from the service.

For example, the following code accesses the implementation that is shown in “EGL support for SOA:”
returnValue String{};
myInterface MyInterfacePart{};

try
   returnValue = myInterface.myEcho("world");

   onException(except AnyException)
      // exception handling
end
Typically, accessing a service outside of Rich UI involves creating an EGL Interface part:
  1. Use a workbench tool to create an EGL Interface part that describes the service operations.
  2. Create a service-access variable that is based on the Interface part.
  3. Use the variable in a service-access statement that places a returned value into a second variable. You can embed the service-access in a try block that references an exception handler. The exception handler is invoked at run time if the invocation fails.