Takes you through the steps required to create a REST service interface from the Book COBOL program.
- From the
Solution Explorer, right-click the
ProgramCORS project; then click
Add > New Item.
- Expand
COBOL, and then select
Native.
- In the center pane, click
Service Interface.
- In the
Name field, type
AccessBooks, and then click
Add.
- In the
Type of interface field, select
Web Service.
- Click the
JSON (RESTful) transport type.
- In the
Type of source field, select
COBOL Program, and then click
OK.
At this point, Visual Studio adds the
AccessBooks service interface to the
Solution Explorer and invokes the Interface Mapper. You are now ready to define the details of the Web service.