Create a REST Web Service

Walks you through the process of creating a REST Web service for the ScheduleDemo application.
Restriction: This topic applies only when the Enterprise Server feature is enabled.

Create a REST Web service from the Schedule COBOL program.

  1. From the Solution Explorer, right-click the ProgramREST project; then click Add > New Item.
  2. In the left pane, expand COBOL; then click Native.
  3. In the center pane, click Service Interface.
  4. In the Name field, type MakeCheckAppt; then click Add.
  5. In the Type of interface field, select Web Service.
  6. Under Transport Type, click JSON.
  7. In the Type of source field, select COBOL Program; then click OK.

At this point, Visual Studio adds the MakeCheckAppt service interface to the Solution Explorer and invokes the Interface Mapper. You are ready to define the details of the Web service.