Exposing RESTful web services by using CTG

You can expose RESTful web services from TXSeries® by using CICS® Transaction Gateway. The REST JSON support for CICS applications that run on TXSeries enables COMMAREA or channel based CICS applications that run on TXSeries to participate in the API economy for mobile and cloud applications.

TXSeries can expose web services that use JavaScript Object Notation (JSON) for HTTP requests and response payloads. CICS Transaction Gateway converts the JSON data into a channel or COMMAREA payload, which is then passed to a TXSeries program. CICS Transaction Gateway then converts the data that is returned from TXSeries to JSON.

Figure 1 illustrates the flow of the web services operation.

Figure 1. Web service operation
Web service operation

For more information about web services, see JSON web services.