Creating a Java web service that has a COBOL interface

You can create Java applications that interact with CICS using the same techniques used in other programming languages. To create these applications, you must write or generate Java code to create structured COMMERA- or container-style data.

Procedure

  1. Use DFHWS2LS to create COBOL language structures for the web service.
  2. Write a Java™ web service that generates and parses COBOL language structures.
    For more information about tools that allow Java programs to access existing CICS application data and links to examples of how to create a Java web service that can generate and parse COBOL language structures, see Interacting with structured data from Java.
  3. Optional: If you are using a provider pipeline and you want to add the capability for a SOAP Fault message to be returned to the requester, use the JCICS SoapFault class to issue the EXEC CICS SOAPFAULT CREATE command.
  4. Optional: If you are using a requester pipeline, use the JCICS Service class to interface with the CICS® SERVICE API and issue the EXEC CICS INVOKE SERVICE command.

What to do next

For more information about JCICS classes, see the JCICS Javadoc information.