This is a BASIC subroutine web service that takes a dynamic array containing multivalue Item-IDs and location codes for the first argument and in the second argument, returns a dynamic array containing multivalue inventory information.
In this example, a subroutine is selected, the argument bindings to dynamic-array are set, and then the dynamic array layouts are defined.
The Create a Web Service Operation dialog box opens.
The Select a Web Service Operation Type dialog box opens.
The Construct the Cataloged Subroutine dialog box opens.
Note that this subroutine has two arguments. The first argument is the REQUEST input and the second argument is the RESPONSE output.
In this example, you need to change the arguments binding and type from simple/string to dynamic-array.
The Argument Definition dialog box opens.
Now you can define the inventory.request and inventory.response dynamic arrays.
You will see the inventory.request dynamic array in the Editor panel.
See Define a dynamic array on a cataloged subroutine for more information on defining a dynamic array from the Editor panel.
You will see the inventory.response dynamic array in the Editor panel.