Create a request (IMS callout
request) mapping session file with the IMS application
source file as the source, and the web service WSDL file as the target
to map the data structures between the IMS application
and the web service for the request message.
To generate the request mapping session file:
Right-click the COBOL copybook in your project and select Enable
Enterprise Web Service.
The Enterprise
Service Tools Wizard launchpad opens.
In the Enterprise Service Tools Wizard launchpad,
Select the following settings:
Host runtime: IMS Enterprise Suite
SOAP Gateway
Development scenario: Map an Existing Service Interface
(meet-in-middle)
Application mode: web Service Requestor
Conversion type: Compiled XML Conversion
Click Start.
The Map an Existing Service Interface wizard
opens.
Create a request mapping session file.
On the New XML to COBOL or PL/I Mapping Session page
of the wizard:
In the Mapping source field, the name of
the copybook that you right-clicked 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
WSDL file for the web service that your IMS application
is calling out to.
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.
Adjust the values if they are not what you want by selecting from
the selection lists.
Ensure that the correct source 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 request mapping
session file to be created.
In the Map file name field, type a name
for the new request 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.
The request mapping session file is created and contains the
mappings that you created.