Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling web services from Mainframe batch programs

We are currently looking at doing a partial migration away from a Main Frame.

Some of the functionality written in Mainframe Cobol is called from Mainframe Batch programs.

We would like to move these cobol programs off the mainframe.

If for example we moved the functionality in the cobol programme to a Java or .Net web service. Is the a way to call this web service from a Mainframe batch programme?

like image 504
Shiraz Bhaiji Avatar asked Sep 18 '26 12:09

Shiraz Bhaiji


1 Answers

First off, I am not sure if there is a way to call web services directly from Cobol, but we had a similar problem trying to call web services from the iSeries(AS400) using RPG and CL.

In the end, we wrote a simple Socket program in java, running on a server, which we called an WebServiceBridge, and the bridge program simply took the data from the socket program and constructed a webservice call in Java. The results of which we simply piped back through the socket.

If Cobol struggles with web services, then this may be a simple solution. Be aware however that your bridge will need to be monitored, resilient and always available in the same way as you would design your web services.

like image 161
Codemwnci Avatar answered Sep 21 '26 01:09

Codemwnci



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!