Accessing a service

In EGL, you can access several different types of services. To learn how to access the services, see the links in the following table. For background information about service access, see “Service access in EGL.”
Goal Tasks
To access a local EGL service
  1. Declaring an access variable to access a local EGL service
  2. Then, complete either of these tasks:
    1. Invoking a service asynchronously from a Rich UI application
    2. Invoking a service synchronously from outside of Rich UI
To access an EGL REST service or third-party REST service
  1. Creating an Interface part to access a REST service
  2. Declaring an access variable to access a REST service
  3. Consider the following option, which gives you flexibility over time:
  4. Then, complete either of these tasks:
    1. Invoking a service asynchronously from a Rich UI application
    2. Invoking a service synchronously from outside of Rich UI
To access a SOAP service
  1. To create an Interface part, complete either of these processes:
    1. Creating an Interface part to access a SOAP service
    2. Adding a SOAP binding to the deployment descriptor
  2. Declaring an access variable to access a SOAP service
  3. Then, complete either of these tasks:
    1. Invoking a service asynchronously from a Rich UI application
    2. Invoking a service synchronously from outside of Rich UI
To access a remote EGL service, which is possible from outside of Rich UI only
  1. Creating an Interface part from a Service part or external type
  2. Declaring an access variable to access a remote EGL or native service
  3. Adding an EGL binding to the EGL deployment descriptor
  4. Invoking a service synchronously from outside of Rich UI
To directly access a native IBM® i service program, which is possible from outside of Rich UI only
  1. Creating an Interface part from a Service part or external type
  2. Declaring an access variable to access a remote EGL or native service
  3. Adding a native binding to directly access a remote IBM i service program
  4. Invoking a service synchronously from outside of Rich UI

Feedback