Guides you through the process of adding logic to the Reverse application that performs the task of reversing input, and then building the project in Visual Studio.
The generated skeleton program,
reverse.cbl, contains some basic functionality that is common to any CICS Web service that uses the Channel interface, such as:
- It checks the operation name by retrieving the content of the DFHWS-OPERATION container.
- If the returned operation name matches the name expected by the program (in this case,
reverserequest), the program:
- Populates the request data structure (in
reverI01.cpy) with the content of the DFHWS-DATA container.
- Populates the DFHWS-DATA container with the content of the response data structure (in
reverO01.cpy).
Add operation logic
To provide the required operation logic, we have provided a fully implemented version of the program for you to use.
- Using Windows
File Explorer or at a command prompt, change to the
Reverse project directory.
- Copy the
reverse.cbl file from the
cbl directory to the
wsdl\reverse directory, overwriting the generated COBOL skeleton program.
Build the Reverse project
- From the
Solution Explorer, right-click the
Reverse project; then select
Build.