This section walks you through the process of creating a REST type service interface for the BookDemo application using the
source program
book.cbl.
- From the Solution Explorer, right-click the
ProgramCORS project; then click
Add > New Item.
- Expand
COBOL; then select
Native.
- In the center pane, click
Service Interface.
- In the
Name field, type
ProgramCORS; then click
Add.
- In the
Type of interface field, select
Web Service.
- Click the
JSON transport type.
- In the
Type of source field, select
COBOL Program; then click
OK.
At this point, Visual Studio adds the
ProgramCORS service interface to the Solution Explorer and invokes the Interface Mapper. You are now ready to define the details of the
service interface.