Create an InquireAmount component and service for the composite.
The component uses the EXINQAMT program.
Before you begin
You must have created a composite in the FileaAmountServices
project, created a componentType file, and generated the Service artifacts
for the EXINQAMT program.
About this task
The composite editor is the central tool for assembling SCA
composites, components, services, and references. With it you can
save your progress at any stage during this task by using the keyboard
shortcut Ctrl+S.
Procedure
To create an InquireAmount component and service, complete
the following steps:
- Open the composite in the composite editor by browsing
the SCA project to find the namespace container and double-clicking
on the FileaAmountServiceComposite composite.
- Using the composite editor, create a new component called
InquireAmount using one of the following methods:
- Click anywhere in the editor to use the Action bar and select
the Add Component icon.
- In the palette on the right hand side, click the Component
icon and click in the view to add the component to the composite diagram.
- Edit the text in the component to change the name to InquireAmount.
- Add a service to the component by selecting the Add
ComponentService icon on the Action bar. You
can activate the Action bar by hovering over the component.
- Rename the service to InquireAmountService and
set its properties:
- Right-click in the composite diagram editor and select Show
Properties View.
- Click the icon for the service to show its properties.
- On the Core tab of the Properties View, edit the Name
field to enter InquireAmountService.
- On the Interface tab of the Properties View, set the
Interface type as WSDL and click the Browse button
to select EXINQAMTPort as the interface of
the service. The interface file was created when you generated
the Service artifacts for the EXINQAMT.cbl program. The Interface field is populated as file://target.files#wsdl.interface(EXINQAMTPort).
The value target.files is the default
when no WSDL namespace is specified on the New CICS SCA Component
Type wizard.
- Add a CICS binding to the service:
- On the Binding tab in the Properties View, select Bindings and
click Add.
- In the Add New Binding dialog, select CICS.
- Specify EXINQAMT as the name
and select the direct mapping mode. A
channel-based service has no data mappings, because the application
interface expects a channel and binary data in containers. In such
case you add the CICS binding to the appropriate service or reference
and select direct mapping mode. If you select mapped mapping
mode and a WSBind file, you are specifying that
this is an XML-based service and that the transformation rules for
mapping the XML to the appropriate high-level language is defined
in the chosen WSBind file.
- Configure the Implementation for this component:
- Select the component in the component editor. If
the Properties view does not display, right-click in the composite
diagram editor and select Show Properties View.
- On the Implementation tab of the Properties View, set
the Implementation type as CICS and EXINQAMT as
the component type of the implementation. Use the Select button
to search for the componentType file that you have already created. The Component type field is populated as EXINQAMT.componentType.
The Program and call type fields are automatically populated for you
based on the values that you provided when creating the component
type.
Results
You have now created a component and its service and configured
the implementation to use the correct component type.
What to do next
Create the next component and service for the composite application.