Restriction: This topic applies only when the Enterprise Server feature is enabled.
This section walks you through the process of creating a REST type Web service for the BookDemo application.
- 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
AccessBooks; 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
AccessBooks Web service to the Solution Explorer and invokes the Interface Mapper. You are now ready to define the details of the Web
service.