Can I use web services from Cobol?

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

+3
source share
6 answers

Microfocus provides a tool called Enterprise Server that allows COBOL to interact with web services.

If you have program COBOL A and another program COBOL B and A calls B through an interface section, the tool allows you to open an interface section B as a web service.

A , A B -.

, B -, ( , Windows, Java, ASP ..) .

+3

COBOL, Google .

, , - cobol c-.

+2

? IBM CICS - invokationnn cobol EXEC CICS INVOKE.

+1

ibm , websphere java. ibm , .

0

, WebService Delphi COBOL dll Delphi, webservice.

webservice, DLL, COBOL.

0

CICS, . , - , HTTP-, IBM TCP/IP EZASOKET.

z/OS, COBOL, (JCL) CICS. -, HTTP 1.0 TCP/IP.

  • EZASOKET
    • GETHOSTBYNAME
    • SOCKET
    • CONNECT
    • WRITE
    • FCNTL
    • READ
    • CLOSE
    • SELECTEX

:

  • EZACIC04 EBCDIC ASCII
  • EZACIC05 ASCII EBCDIC
  • EZACIC06
  • EZACIC08 IP-

Since I wrote this for my company, I can't just give out the code. But for reference, it took me 3 days to write a module (plus a little debugging later), and this was with an example to start with what a partial hacker way did to do this.

You will need to read the IBM links to learn how to use the EZA modules.

0
source

Source: https://habr.com/ru/post/1697822/


All Articles