Академический Документы
Профессиональный Документы
Культура Документы
Overview
Somnath Niyogi
Dec 15th, 2014 (Mon)
Agenda
Introduction to web services in general, and in
CICS
Methods for creating a web service provider in
CICS through CICS web services assistant
Methods for creating a web service requester
in CICS through CICS web services assistant
Diagnosing web services in CICS
Discussion on POC Array program Webservice
Basic Terms
Web service
A software system designed to support
interoperable machine to-machine
interaction over network.
It has an interface described in a machineprocess able format (specifically WSDL)
Other systems interact with it using SOAP
messages, typically conveyed using HTTP
[...]
WSDL
Web Service Description Language is an
XML vocabulary that describes the
messages that
are exchanged between the requester and
provider
SOAP
A framework for packaging and
exchanging XML messages
Creating a provider
using the CICS web services assistant
1. Run the DFHLS2WS batch utility (for example,
specifying a
COBOL copybook as the input file).
2. Copy the generated wsbind file to the pickup directory
(the z/OS UNIX path specified by the WSDIR attribute
of the
PIPELINE resource). Optionally, copy the generated
WSDL file to the same path (if you want to validate the
SOAP messages).
3. Install the PIPELINE (dynamically creates the
WEBSERVICE
and URIMAP resources).
Creating a requester
using the CICS web services
assistant
Creating a requester
using the CICS web services assistant
03 PAYBUSOperation.
06 wsXpayrollXdata.
09 wsXrequest PIC X(4).
09 wsXkey.
12 wsXdepartment PIC X(1).
12 wsXemployeeXno PIC X(5).
09 wsXname PIC X(20).
09 wsXaddr1 PIC X(20).
09 wsXaddr2 PIC X(20).
09 wsXaddr3 PIC X(20).
09 wsXphoneXno PIC X(8).
09 wsXtimestamp PIC X(8).
09 wsXsalary PIC X(8).
09 wsXstartXdate PIC X(8).
09 wsXremarks PIC X(32).
09 wsXmsg PIC X(60).
INTO(RESPONSE-AREA)
CHANNEL('mychannel)
RESP(RESP)
RESP2(RESP2)
END-EXEC.
DISPLAY RESPONSE-AREA.
Program:
CICS TS 3.x
DFHLS2WS JCL
WSDL
Installing Webservice
Generate the WSBIND file using either the DFHLS2WS utility (if a
provider) or the DFHWS2LS utility (if a requester).
Copy the WSBIND file to the location /cicsoap/devd/provider or
/cicsoap/devd/requester which are the locations that CICDEVD
reads for webservice WSBIND files. Specify permission bit to 775.
The name of the WSBIND file must be the name of the webservice.
For example, if the webservice is a requester service called
TestArray, then the wsbind file needs to be
/cicsoap/devd/requester/TestArray.wsbind
Run Pipeline SCAN for CICS using requester or provider to pick up your
WSBIND file parameters and install webservice. Issue the SSPL
transaction in CICDEVD.
The WSBIND file that was copied should now have been loaded by CICDEVD.
THANK YOU