Creating a web service using tooling
Instead of using the web services assistant JCL, you can use IBM Developer for z System z® or write your own Java™ program to create the required files in CICS®.
Procedure
- You have two choices:
- Use the IBM Developer for z Systems tool to create a web service binding file and the web service description or language structures. For more information about this tool, see Rational Developer for System z.
- Write your own
Java
program, using the provided API,
to invoke the web services assistant. This API is described in
Web services
assistant: Class Reference
Javadoc. It includes comments that explain the classes, and sample
code is provided to give an example of how you might invoke the
web services assistant. The Javadoc
also contains a complete list of the JAR files that are required and
their location in
z/OS®
UNIX.
You can run your Java program on the z/OS , Windows , or Linux platform. If you run the program on Windows or Linux , transfer the generated web services binding file to a suitable pickup directory in binary mode using FTP or an equivalent process.
- Optional: If you are generating a web service description from a language structure, review the file and perform any necessary customization. For more information, see Customizing generated web service description documents.
- Deploy the generated web service binding file into a suitable pipeline pickup directory.
- Optional: Copy the web service description into the pickup directory of the pipeline, so that you can perform validation of the web service to check that it is working as expected.
- If you started with a web service description, write a service provider or requester application program to interface with the generated language structures.
- Run a PIPELINE SCAN command to automatically create the required CICS resources.
dfhws_invokingAPI.html |
Last updated: Monday, 5 June 2017