Configuring z/OS Connect for CICS for a CICS JSON web service
After initially configuring z/OS® Connect for CICS®, you can configure it for a CICS JSON web service. JSON web services are deployed to z/OS Connect for CICS in a similar way as to other CICS PIPELINE environments.
Before you begin
About this task
Services can be deployed to z/OS Connect as z/OS Connect managed services, or as CICS managed services. This topic discusses deploying these services as CICS managed services. By deploying services as CICS managed services, WEBSERVICE resources will exist for each service. This deployment mechanism is compatible with older JSON web services technology in CICS where services are deployed to z/OS Connect similar to other CICS PIPELINE environments including SOAP web services.
If you have z/OS Connect Enterprise Edition V3, you might have better results by deploying the services as z/OS Connect managed resources, as described in the z/OS Connect Enterprise Edition V3.0 product documentation.
Procedure
Results
<httpEndpoint>
section of the server.xml configuration file. The web browser displays a list
of the installed services.The service is now ready to be called from a JSON client that uses the same hostname and portnumber.
zosConnect/services list, for
example:{
"id":"EXAMPLE",
"name":"EXAMPLE",
"url":"https://hostname:portnumber/zosConnect/services/EXAMPLE",
"protocol":"REST",
"description":"CICS Service"
}"EXAMPLE", and this
Service definition was created dynamically by CICS when the EXAMPLE WEBSERVICE
resource was installed. You can use a web browser to visit
https://hostname:portnumber/zosConnect/services/EXAMPLE that returns a document
with more details about the Service, similar to the
following:{
"id":"EXAMPLE",
"name":"EXAMPLE",
"protocol":"REST",
"description":"CICS Service",
"restEndpoints":[
{
"name":"EXAMPLE",
"address":"hostname:portnumber/jsonTests/myExampleService"
}
]
}In
this example, the "address" is the URI at which the Service is exposed. This URI
might be derived from information in a WSBind file, from an invokeURI
attribute, or from the default z/OS Connect naming convention.
When a request arrives in the Liberty JVM server, it is associated with the z/OS Connect for CICS receiver that uses the information from the server.xml configuration file. A new CICS task starts to perform this work, and it is associated with a specific WEBSERVICE resource that uses the information from the URIMAP resource. The data transformation process occurs in the Liberty JVM server, and the target CICS program is attached, as named in the WSBind file.