As part of the functionality in WD/z V7 for developing z/OS applications and Web services are the Enterprise Service Tools for Web services and SOAP. Within this functionality is the Web services for CICS wizard that provides the functionality similar to that of the DFHLS2WS utility.
The example we are going to use is to generate the business logic in program ITSOCA03 using the COBOL copy book called ITSOCACD, which provides the data structure for our business logic for Listing Corporate Acknowledgements.
Unlike our other data structures, this structure represents a CONTAINER rather than a COMMAREA.
The following steps demonstrate the generation of wsdl and wsbind files from our developed COBOL copy book data structure.
1. Importing the COBOL copy book
Use the following steps to import the copy book member from the z/OS remote system into a local project in the Navigator view:
2. Running the Web Services for CICS wizard
Select the copy book to generate Web Service artifacts
Check that the following are selected:
Using the bottom-up scenario with Interpretive XML conversion generates files to implement a Web service provider for the Web services CICS environment. Interpretive XML conversion is supported only for the Web services for CICS runtime environment.
The Enterprise Service Tools Wizard Launchpad
Specify the CONTAINER name
Specify CONTAINER-DATA as the language structure
We also specify that the target program communicates via a channel, and we name the expected CONTAINER.
WSBind and WSDL file target names
The generated artifacts can now be seen in the Explorer view of the local project.
The generated Web service artifacts
3. Creating the CICS resources
We generated the Web service wsdl and bind files. In this example we wrote the generated files to a local project on the workstation, so in order for CICS to dynamically create the WEBSERVICE and URIMAP resources, we need to copy the .wsdl and .wsbind files to our pickup directory for our PIPELINE in the UNIX System Services HFS.
To do this we performed a drag and drop of the two files CorpAck.wsbind and CorpAck.wsdl to the HFS directory: u/jnott/cicswsap/wsbind/provider.
Now we can scan the pipeline to dynamically create the CICS resources by issuing the following CICS command:
CEMT PERFORM PIPELINE(EXPIPE01) SCAN
This command detects the new bindings file in the pickup directory, copies it to the shelf directory for this CICS region, and dynamically creates the WEBSERVICE and URIMAP resources.
IBM-CICS Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-REXX Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||COBOL Interview Questions|
|IBM-JCL Interview Questions||DB2 Using SQL Interview Questions|
|IBM-JCL&VSAM Interview Questions||IBM Mainframe Interview Questions|
|Mainframe DB2 Interview Questions|
Service-oriented Architecture And Cics
Cics As A Service Provider And Requester
Modern Web Services Development Tools
Development Of The Change Of Address Cics Application
Exposing Our Application As A Web Service
Developing Web Service Clients
Tracing The Change Of Address Scenario
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.