Create the check-inventory web service operation

This is a BASIC subroutine web service that returns an item from the MVDEMO INVENTORY using a provided Item-ID.

About this task

This subroutine has two arguments. The first argument is the ITEM.ID input and the second argument is the ITEM output.

You can change these values by selecting the argument from the list, and then clicking the Edit button. For this example, you will use the default values.

Procedure

  1. Right-click the mvs Web Service from the MV Web Service Explorer and select the Create Web Service Operation option.

    The Create a Web Service Operation dialog box opens.

  2. Select localserver from the Database Connection drop-down, and then click Connect to display the list of accounts.
  3. Select the MVDEMO account from the Account drop-down, and then click Next.

    The Select a Web Service Operation Type dialog box opens.

  4. Select the Cataloged Subroutine option, and then click Next.

    The Construct the Cataloged Subroutine dialog box opens.

  5. Type check-inventory in the Operation Name text box and type CHECK.INVENTORY in the Subroutine drop-down.
  6. Click Finish to create the Web Service Operation.