Configuring Data Transformers
IBM® z/OS® Connect provides the ability to optionally transform request and response payloads that are used for calling a business asset on z/OS operating systems. You can create message payload transformers to satisfy specific needs by implementing the com.ibm.zosconnect.spi.DataXform Service Provider Interface (SPI), which is included with z/OS Connect.
About this task
zosConnect-2.0 Applies to zosConnect-2.0.
z/OS Connect provides an implementation that requires the request and response message format be JSON. This product supports the conversion of the request to a byte array, which can be mapped by a native language COBOL, PL/I, or C structure. This language structure of the target program, or copy book, includes a description of the in and out parameters. The language structure is used by a supplied utility to generate a binding file and JSON request and response schema files. The bind file that is generated by this utility is used by z/OS Connect to complete the data conversion to and from JSON and native data formats as requests arrive and responses are returned. You can retrieve the JSON schemas for the request and response message with a RESTful API call that is provided by z/OS Connect.
z/OS Connect provides the
zosConnectService configuration element that enables the administrator to configure
a set of attributes that apply to a particular service. One of these attributes is
dataXformRef, which points to a data transformation configuration that is to be
used for a specific service. This task describes how the data transformer supplied with z/OS Connect is used.
- In the examples shown in steps 1 & 2, the
serviceNameandbindFileSuffixmust match thebindfilefound inbindFileLoc. For example: recordOpsCreate.wsbind resides in /u/bindfiles. - The request and response schema file names must match the
serviceNamespecified in the zosConnectService element with _request or _response appended. The values, including the file type, must match therequestSchemaSuffixorresponseSchemaSuffixrespectively. For example: recordOpsCreate_request.json and recordOpsCreate_response.json. These files must reside in /u/json.