Create a response (web service response to the callout
request from an IMS application)
mapping session file with the web service WSDL file as the source,
and the IMS application source
file as the target to map the data structures between the IMS application and the web service for the response
message.
To generate the response mapping session file:
Right-click the web service WSDL file and select Enable
Enterprise Web Service.
The Enterprise
Service Tools Wizard launchpad opens.
In the Enterprise Service Tools Wizard launchpad, select
the following options:
Host runtime: IMS Enterprise Suite SOAP Gateway (Rational® Developer for System z® Version 8.0.3.2 or
later), or IMS SOAP Gateway in earlier versions.
Development scenario: Map an Existing Service Interface
(meet-in-middle)
Application mode: Web Service Requestor
Conversion type: Compiled XML Conversion
Click Start.
Create a response mapping session file.
On the New XML to COBOL or PL/I Mapping Session page
of the wizard:
In the Mapping source field, ensure that
the name of the WSDL file is listed. If this is not the file you want
to use for the source, click Browse and choose
a different source file.
In the Mapping target field, specify the
source file for the IMS application
that issues the callout request.
Click Next.
On the Root XML Element and Language Structure Selection
page of the wizard, the fields are automatically completed based on
the COBOL copybook source and the WSDL target file that you specified.
Check the values.
Adjust the values if they are not what you want by selecting from
the selection lists.
Ensure that the correct target language structure is selected.
Click Next.
Create a new XML to COBOL mapping session.
In the Mapping file folder field, specify
the path for the folder in which you want the new response mapping
session file to be created.
In the Map file name field, type a name
for the new response mapping session file.
Click Finish.
A mapping session file with a mapping extension
is created in the file folder that you specified.
Use the mapping editor to create data mappings:
Double-click the mapping session file that you want
to edit.
The mapping editor opens.
In the mapping editor:
For each mapping that you want to create, drag an element in the
source data to an element in the target data. The editor displays
a connecting line between the source element and the target element
to indicate that a mapping exists.
When you are finished creating the mapping, close the mapping
editor.
The response mapping session file is created and contains
the mappings that you created.