Creating an EGL Service part

To create an EGL source file that contains an EGL service part, do as follows:

  1. Identify a project or folder to contain the file. You must create a project or folder if you do not already have one.
  2. In the workbench, click File > New > Service. The New EGL Service Part wizard opens
  3. In the Source folder field, select a source folder to hold the new file.
  4. In the Package field, select a package to hold the new file.
  5. In the EGL source file name field, type a name for the new file.

    Since the name of the new service will be identical to the name of the file, type a name that adheres to EGL part name conventions.

  6. If you want the new service part to implement any EGL interface parts, follow these steps:
    1. Click Add. The Implemented Interfaces Selection window opens.
    2. In the Choose interfaces field, type a search string.
      • A question mark (?) represents any one character
      • An asterisk (*) represents a series of any characters

      The interface parts that match the search string are listed under Matching parts.

    3. Click the interface part you want the service part to implement.
    4. Click Add.
    5. When you are finished choosing interface parts, click OK.

    The interface parts you chose are listed in the Implements Interfaces field. You can remove an interface part by clicking it and then clicking Remove.

  7. New service parts can include functions that call an EGL called program. If you want the new service part to have functions that call an EGL called program, follow these steps:
    1. Click Show Advanced.
    2. Click the Add button next to Basic Called Programs. The Basic Called Program Selection window opens.
    3. In the Choose Programs field, type a search string.
      • A question mark (?) represents any one character
      • An asterisk (*) represents a series of any characters

      The programs that match the search string are listed under Matching parts.

    4. Click the program name.
    5. Click Add.
    6. When you are finished choosing programs, click OK.

    The programs you chose are listed in the Basic Called Programs field. You can remove an interface part by clicking it and then clicking Remove. For each of the programs in this field, the new service part will have a function that calls the program.

  8. Click Finish.

Related concepts
EGL projects, packages, and files
Introduction to EGL
EGL services and Web services
EGL interfaces

Related tasks
Creating an EGL source folder

Related reference
Naming conventions
Interface part in EGL source format
Service part in EGL source format

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.