Takes you through the steps required to create a REST service interface from the Book COBOL program.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
- 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.
- 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.
Note: Ensure that the solution platform in Visual Studio matches the bitism of the server you are deploying to.
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.