Previous Topic: Select Record (Chart 4 of 4)

Next Topic: Define the Files

How to Create a Deployable Web Service Using a Multiple-instance Array

This process explains how an experienced CA 2E Application Developer can use CA 2E web service support with enhanced array support to make an invocation and retrieve an order. This process includes the order header and multiple order detail lines.

Important! The coding examples are designed to illustrate enhanced array support and are not production-ready. For example, the examples do not contain any user-added error handling.

As an experienced CA 2E Application Developer, you want your result to be a deployable 2E Web Service that uses Enhanced Array Support to return multiple-instances of data in a single invocation. In this scenario, we use an Order Header and Order Detail file, and the order has a single order header and multiple detail lines.

The following illustration shows how you complete the process:

Create a Deployable Web Service Using a Multiple-instance Array

Follow these steps:

  1. Define the Files
  2. Define the Order Details Array
  3. Create an Execute External Function
  4. Retrieve the Order Header and Order Details
  5. Set the EXCEXTFUN function to a module
  6. Generate and compile the module
  7. Create a Service Program
  8. Add the module to the Service Program
  9. Generate and compile the Service Program
  10. Create a web service function
  11. Deploy the Web Service instance

Note: This procedure uses individual *MOVE ARRAY statements. As you become familiar with the process, the *MOVE ARRAY, *ALL function helps make your work more efficient.