Declaring a variable to access a dedicated or local EGL service

After you code an EGL Service part, you can use that part as the basis of a service-access variable. However, this usage is deprecated.

For the details on the preferred usage, see Accessing a dedicated service.

In the deprecated process, two cases are possible:

Defining an Interface part to access a dedicated or local EGL service

Here is an example Interface type that might be used to access a dedicated service:
Interface MyInterfaceType
   Function GetEmployeeDetail(employeeCode STRING IN, 
                              employeeSalary FLOAT OUT, 
                              employeeStatus STRING INOUT) 
            returns(myEmployeeRecordPart);
end

The example includes a single function prototype, but more are possible. Also, you can specify a variety of EGL data types and can use the modifiers IN, OUT, and INOUT.

If you have access to the EDT IDE, you can create the Interface part easily from the Service part:
  1. In the Project Explorer, right click the EGL file that defines the service.
  2. Click EGL Services > Extract EGL Interface.
  3. In the New EGL Interface part window, specify the appropriate details and click Finish.

When accessing a non-SOAP service, avoid a possible runtime error: do not use an Interface part that is derived from a WSDL file.

Setting a local binding in the deployment descriptor

Assigning the local binding to the service-access variable