CICS TG - JSON Web Service, Identical Request & Response
Posted: Fri Mar 17, 2017 6:43 pm
I am currently on a project, where I am using a JSON web service on the CICS TG to connect to a CICS Server sending a COMMAREA through an HTTP request, and returning it in the same fashion. to generate the necessary files for the CICS TG I am using the CTGLS2JS assistant. The question / problem that I am current dealing with is that when generating the files I would like to provide two different copybooks for the request, and response, both of which contain different information as the input, and output information are completely different from each other. Generating the wsbind file works fine. but when it comes to actually testing it, I receive a ABEND code of AZI6, which after doing some research and testing, I've come to the conclusion the both the input and output COMMAREA have to be the same. Reading up on the documentation it states that they both the LS-Request, and LS-Response must be different from each other. Bellow is a sample of the CTGLS2JS assistant code that I used that resulted in the ABEND .
LANG=COBOL
MAPPING-MODE=LS2JS
PGMINT=COMMAREA
TARGET-CICS-PLATFORM=AIX
LOGFILE=./captest.LOG
PGMNAME=CAPTEST
WSBIND=./captest.wsbind
LS-REQUEST=./request.cpy
LS-RESPONSE=./response.cpy
JSON-SCHEMA-REQUEST=./test-req.json
JSON-SCHEMA-RESPONSE=./test-res.json
STRUCTURE=(request,response)
DATA-TRUNCATION=ENABLED
If there is anything that I missed in the CTGLS2JS JCL that would help, or anything relating to the subject at hand please let me know ASAP please.
NOTE: This is my first time posting on this type of forum website, so I'm sorry if i break any rules, or have posted in the wrong section.
LANG=COBOL
MAPPING-MODE=LS2JS
PGMINT=COMMAREA
TARGET-CICS-PLATFORM=AIX
LOGFILE=./captest.LOG
PGMNAME=CAPTEST
WSBIND=./captest.wsbind
LS-REQUEST=./request.cpy
LS-RESPONSE=./response.cpy
JSON-SCHEMA-REQUEST=./test-req.json
JSON-SCHEMA-RESPONSE=./test-res.json
STRUCTURE=(request,response)
DATA-TRUNCATION=ENABLED
If there is anything that I missed in the CTGLS2JS JCL that would help, or anything relating to the subject at hand please let me know ASAP please.
NOTE: This is my first time posting on this type of forum website, so I'm sorry if i break any rules, or have posted in the wrong section.