Search code examples
web-servicesintegrationcommunicationcobol

Would it be possible to use web services from a Cobol program?


We have some COBOL programs in our financial applications which need to interact with some of our backend systems. One of the available interfaces is through a web service. Can a program written in Cobol make requests to a web service?


Solution

  • Microfocus provide a tool called Enterprise Server which allows COBOL to interact with web services.

    If you have a COBOL program A and another COBOL program B and A calls B via the interface section, the tool allows you to expose B's interface section as a web service.

    For program A, you then generate a client proxy and A can now call B via a web service.

    Of course, because B now has a web service any other type of program (command line, Windows application, Java, ASP etc.) can now also call it.