You can test your connection to an IMS database by
invoking the provided IMS database contacts API directly from z/OS® Connect API
toolkit by using the "Try it out!" function
in the Swagger UI that is embedded in the editor.
Procedure To test your connection to IMS using the contacts
API:
Start IMS and ensure that IMS Connect is listening on the expected port.
Start your IBM® z/OS Connect server. For more
information, see Starting and stopping IBM z/OS Connect .
Check the messages.log file for the following messages that confirm that
the API is installed.
BAQR7000I: z/OS Connect API archive file dbcontacts installed successfully.
Check the messages.log file for the following messages that confirm that
the service is installed.
BAQR7043I: z/OS Connect service archive dbPhonebook installed successfully.
In the z/OS Connect Servers view under the APIs
folder, double-click on the IMS database API.
The API is opened in the Swagger UI.
Click List Operations to see available operations in the API.
Figure 1. Operations in the API
Test querying a contact record by clicking GET .
The Example Value box opens, demonstrating the response message payload
format from your database GET request.
Under the Parameters list, specify a
lastName value of LAST1
Click Try it out! .
Information about the request URL, request headers, response body, response code, and
response headers are provided.
You will receive the following response
body.
{
"response": {
"result": [
{
"LASTNAME": "LAST1",
"ZIPCODE": "D01/r01",
"FIRSTNAME": "FIRST1",
"EXTENSION": "8-111-1111"
}
]
}
}
Results You have verified your connection to an IMS database is
working.