Previous Topic: Web Services Limitations

Next Topic: Commands

Sample Flow

This section shows an example of how you might use these new features in CA 2E. Some settings and selection might vary depending on your system configuration.

To define and deploy a Web Service from CA 2E

  1. Identify a Service Program that has module operations you want to expose via a web service.

    Sample Flow

  2. Create a new Web Service type function.

    Sample Flow (2)

  3. Zoom into the Web Service function to Edit Function Details.

    Sample Flow (3)

  4. Specify the Web Service Name and Select Service Program.

    Sample Flow (4)

    Note: On Service program file and Service Program function allows user to choose file, as in the following example:

    Sample Flow (5)

    Users can also choose function, as in the following example:

    Sample Flow (6)

  5. EDIT FUNCTION DETAILS

    Auxiliary details populated.

    Sample Flow (7)

    Note: Any number of Web Service Instances can be created from the EDIT FUNCTION DETAILS panel. Each Web Service will be associated with the 2E Web Service function in the panel header.

    All the associated Web Services can be viewed using F16 to invoke the WEB SERVICE INSTANCES panel.

    To create a Web Service Instance with a different Web Service name, you should change the Web Service Name on Edit Function Details, then press F10.

    Note: If any of the instances have been installed to a server and the Installed Flag is set to Y, then the Web Service Name, Service Program File and Service Program Function all become Output only. This is to ensure that the Web Service details in the model, and the installed Web Service Instance, are in synch.

  6. Create the Web Service Instance (YCRTWS)

    Architecture (3)

    Note: See the section New Commands for the command parameter descriptions.

  7. Work with Web Service Instances:

    Sample Flow (8)

    A machine name of *CURRENT indicates that the Web Service instance is to be deployed on the local machine. If you enter any other machine name other than the local one, the Installed flag will always be set to ?, since the machine is not available.

    You can only take option I - Install for a Web Service Instance with Machine = *CURRENT. To install Web Service instances to a remote machine, you must use the Web Service Remote Deployment feature. For further details of this please refer to the corresponding section in this chapter.

  8. Use option I to install a modeled Web Service to a Web Services Server.

    Sample Flow (9)

  9. Use option U to uninstall a modeled WS from a Web Services Server.

    Sample Flow (10)

  10. Use IBM Web Administration interface to start/stop/test deployed Web Service.
    http://{your_machine}:2001
    

    Sample Flow (11)