Binding: Talking to the World

Binding: Talking to the World

In the previous article we turned Jazz program JSPG2 into COBOL, which we compiled. It is a web service, but it starts by reading a COBOL-format input message, and it sends COBOL-format output message(s). How is it going to communicate with other programs that are not written in COBOL? We need something like Esperanto, a simple common language that everyone can understand.

Today JSON is the preferred language for web service communication. Our web service only knows COBOL: we need logic that turns incoming messages from JSON to COBOL, and outgoing messages from COBOL to JSON. There will be similar logic at the client end, converting the message to/from JSON from/to Java, C#, VB, or whatever the client program uses. Creating this logic is called "Binding".

For users who have MANASYS Jazz configured to use z/OS, binding has already been done. When you clicked [Process] to compile the program, the JCL that was generated included steps following the compile step to create the binding logic and the JSON descriptions of the input and output messages.

It's slightly more difficult for those using Micro Focus. In summary

1. Add a service interface for JSPG2 to your COBOL project and define the interface. Choose options CWS-Type, JSON, and CICS Channel. Do not choose SOAP: this was an earlier type, but JSON has superseded it.

2. With the interface defined, right-click JZPG2.svi and click Generate WSBIND

3. Move JSPG2.wsbind from the project's root folder to the project's loadlib folder.

4. Build the project.

This is illustrated in detail here. Ignore the WSDL (=SOAP) examples.

With binding completed, our new web service is now running and we can test it with utility programs like ReadyAPI and Postman. This will be covered by the next article in this series.

See our web page if you want more information about MANASYS Jazz and to see what it can do. Contact us if you have any questions, or connect with us on LinkedIn. Download a free evaluation copy to try out MANASYS Jazz yourself. And if you haven't done so already, please repost the link to this series of articles to your colleagues and contacts.

Carol Rogers (nee Mader)

Senior Test Analyst at iag Insurance

12 个月

I really like these walk throughs, helps to see how simple the process is in Jazz.

赞
回复

要查看或添加评论,请登录

Robert Barnes的更多文章

  • New Licensing Rules for MANASYS Jazz

    New Licensing Rules for MANASYS Jazz

    DXC Technology have started another Easytrieve Conversion project using MANASYS Jazz. There are two good reasons to use…

    3 条评论
  • The Many Charms of COBOL

    The Many Charms of COBOL

    Our development software MANASYS Jazz functions by generating COBOL, so I always notice publications about COBOL and…

  • MANASYS Jazz now supports DL/I

    MANASYS Jazz now supports DL/I

    EasiRun, our German reseller, has customers that are interested in Easytrieve Conversion with MANASYS Jazz, but have…

  • EasiRun to be a MANASYS Jazz Reseller

    EasiRun to be a MANASYS Jazz Reseller

    Jazz Software Ltd is delighted to announce the appointment of EasiRun Europa GmbH as a reseller of its software…

    6 条评论
  • MANASYS Jazz Build #308 Now Released

    MANASYS Jazz Build #308 Now Released

    Build 3.17.

    2 条评论
  • References

    References

    Over 14 articles, this series has shown you how easy it is to write bridge applications in which your COBOL Web Service…

  • Where Next with Bridge Apps?

    Where Next with Bridge Apps?

    This is article 14 of this series. By the previous article we'd seen that our bridge technology is already very…

  • Review

    Review

    This is the 13th article in this series, and we've covered all parts of developing bridge applications. What have we…

  • Debugging Bridge Applications

    Debugging Bridge Applications

    This is the 12th article in this series. Errors can occur in any software, but the way bridge architecture separates…

  • Changing Bridge Applications

    Changing Bridge Applications

    These articles have shown you how to develop all three components of a bridge application. Most of the logic has been…

社区洞察

其他会员也浏览了