Tutorials: Interface Mapping Toolkit

Includes tutorials that teach you how to use the Interface Mapping Toolkit (IMTK) from the Eclipse IDE using a demonstration COBOL application to create and access both SOAP and REST Web services, and a Java EJB service interface.
Restriction: These Interface Mapping Toolkit tutorials apply only when the Enterprise Server feature is enabled.

Assumptions

These tutorials are written from the perspective that all of the following is true. If you require specific instructions for any of these items, see the Before you begin a tutorial section that follows:

  • You have installed the latest version of Micro Focus Visual COBOL for Eclipse on your local machine using default installation settings.
  • The COBOL environment is set up using the cobsetenv command.
    Note: You must do this step before activating ESCWA.
  • The Enterprise Server Common Web Administration (ESCWA) feature is activated on your local machine before starting Visual COBOL.
  • Visual COBOL is started on your local machine, and the COBOL perspective and Application ExplorerCOBOL Explorer view are open..
  • Eclipse options are set to build projects automatically.
  • You have addressed all of the items in the Before you begin a tutorial section below.

Before you begin a tutorial

Set up the COBOL environment
The cobsetenv command sets up your COBOL environment in Eclipse, and sets the $COBDIR environment variable to point to your Visual COBOL installation directory.
  1. At a terminal command prompt, log in as a root user.
  2. Execute the following command:
    . /opt/microfocus/VisualCOBOL/bin/cobsetenv
Activate ESCWA
  1. At a terminal command prompt, log in as the root user.
  2. Execute the following command to start the Micro Focus Directory Server (mfds):
    $COBDIR/bin/mfds
  3. Open another terminal command prompt and log in as the root user.
  4. Execute the following command to prepare Enterprise Server for use:
    $COBDIR/bin/casperm.sh

    You are presented with a series of questions. For complete information, see To Run casperm.sh.

Start Visual COBOL
Start Visual COBOL using the default workspace, which is home/username/workspace where username is your operating system login ID. If you need instructions to get Visual COBOL started on your local machine, see To start Visual COBOL.
Open the COBOL Perspective and COBOL Explorer View in Eclipse
When you start Visual COBOL for the first time, the COBOL perspective starts automatically by default, and shows the COBOL Explorer view. If this is not the case, open the COBOL perspective as follows:
  1. From the Eclipse IDE, click Open Perspective Open Perspective.
  2. On the Open Perspective dialog box, select COBOL, and then click Open.
Set Eclipse to build automatically
By default, the Eclipse Build Automatically option is turned on, which means that Eclipse builds a project automatically each time a change is made. To ensure that this Build Automatically is turned on:
  1. From the Eclipse Main Menu, click Project.
  2. Do one of the following:
    • If the Build Automatically menu option has a check mark to its left, it is already turned on. No further action is required.
    • If the Build Automatically menu option does not have a check mark to its left, click the option to turn it on.
Set Interface Mapper preferences
Before you begin the tutorials, you need to set the properties for the Interface Mapper to show both the Reusable Fields and COBOL Assignments panes. You use one or both of these panes while working through the tutorials.
  1. From the Main Menu in Eclipse, click Window > Preferences.
  2. Expand Micro Focus > Service Interfaces; then click Interface Mapper.
  3. Check both Show Reusable Fields pane and Show COBOL Assignments pane; then click Apply and Close.
    Note: If a Preference Synchronization dialog box appears, click No - Preferences will be saved locally.; then click OK.

Sequence

You may do these IMTK tutorials in any order. They are not interdependent.