Previous Topic Next topic Print topic


Tutorial: Debugging Web Services

This tutorial shows how you can use Visual Studio to debug COBOL Web Services running on Enterprise Server.

The following outlines the steps to complete this tutorial:

  1. Create and configure an enterprise server for dynamic debugging.
  2. Configure the Net Express WebService demonstration application to use Enterprise Server.
  3. Use Net Express to deploy the supplied Web service to Enterprise Server.
  4. Generate a client with Net Express.
  5. Create a Visual Studio project for the COBOL source and associate it with Enterprise Server.
  6. Run the client in Net Express.
  7. Debug the Web service in Visual Studio.

Demonstration Applications and Prerequisites

This tutorial uses two demonstration applications supplied with your COBOL development system that use the same COBOL source, calculator.cbl. One of them is a Net Express project that includes the COBOL source application and a Web service created from it that you deploy to Enterprise Server via Net Express. The other demonstration application includes the COBOL source for the same Web service and you use it to debug the Web service in Visual Studio.

The COBOL source application, calculator.cbl, is a simple COBOL program that adds two numbers and outputs the result.

The demonstration applications are:

  1. The Net Express WebService demonstration is supplied in the subdirectory %ProgramFiles(x86)%\Micro Focus\Studio Enterprise Edition x.x\Examples\Net Express IDE\WebService in your installation folder. It includes the following files:
    • calculator.cbl - COBOL source file
    • calculator.xml - mapping for the Web service
    • calculatordemo.xml - the Web service to be deployed to Enterprise Server
    • webservice.mpr - service interface for the supplied Web service
    • webservice.app - project file for this Net Express demonstration application
  2. The Visual Studio demonstration, the Calculator demonstration, is in the subdirectory Examples\Visual Studio Integration\Calculator in your installation folder. It includes the calculator.cbl file, which is the COBOL source of the Web service supplied with the Net Express WebService demonstration.

For more info on how you can create Web Services from COBOL applications, read the chapters on Interface Mapping in the Micro Focus Net Express Help.

Previous Topic Next topic Print topic