z/OS如何调用Web服务? [英] How can z/OS call a web service?
问题描述
我有一个COBOL程序,需要从Web服务获取数据.不使用CICS,我最好的选择是什么?我以为C程序可以读取Web服务并将其保存到文件中,然后COBOL可以读取该文件. COBOL可以调用Web服务吗?数据大小约为300mb.
I have a COBOL program that needs to get data from a web service. Without using CICS what are my best options? I thought that a C program could read the web service and save it to a file, then the COBOL could read that file. Can COBOL call a web service? The data is about 300mb in size.
推荐答案
使用IBM TCP/IP'EZASOKET'模块
Use the IBM TCP/IP 'EZASOKET' modules
我为一家z/OS系统工作的公司工作,该系统主要运行COBOL,批处理(JCL)和CICS.为了调用Web服务,我们编写了一个模块来使用TCP/IP实现HTTP 1.0.带有模块
I work for a company with a z/OS system running mostly COBOL, batch (JCL) and CICS. To call webservices, we wrote a module to implement HTTP 1.0 using TCP/IP. With modules
- EZASOKET
- GETHOSTBYNAME
- 袜子
- 连接
- 写
- FCNTL
- 阅读
- 关闭
- SELECTEX
- EZASOKET
- GETHOSTBYNAME
- SOCKET
- CONNECT
- WRITE
- FCNTL
- READ
- CLOSE
- SELECTEX
补充模块:
- EZACIC04将EBCDIC转换为ASCII
- EZACIC05将ASCII转换为EBCDIC
- EZACIC06将字符转换为位掩码
- EZACIC08解码IP地址
自从我为公司编写此代码以来,我不能仅仅给出代码.但作为参考,我花了3天的时间编写了该模块,并且从一个示例开始,此示例做了部分hacky方式.
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 the module, and that was with an example to start with that did a partial hacky way of doing it.
您需要通读IBM的参考资料,以了解如何使用EZA模块.
You'll need to read through IBM's references to know how to use the EZA modules.