Create an AddAmount component and service for the composite.
The component uses the EXADDAMT 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 EXADDAMT 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 AddAmount component and service, complete
the following steps:
- Right-click the FileaAmountServices project and select . The New component wizard displays.
- Complete the New component wizard with the following values:
- In the Project field, select FileaAmountServices.
- In the Composite field, select the FileaAmountServiceComposite
- http://sample.org/fileaamountservice composite from the
list.
- In the Component Name field, enter AddAmount.
- In the Interface Type field, select WSDL.
- Choose the option to reuse an existing service interface.
- In the Interface Name field, use the Select button
to search for the interface that you created. The
field populates with the value EXADDAMTPort - file://target.files.
- In the Implementation Type field, select CICS.
- Choose the option to reuse an existing implementation.
- In the Implementation Name field, use the Select button
to search for the componentType file that you created. The field populates with the value \FileaAmountServices\EXADDAMT.componentType
- Click the Finish button to create
the component in an existing composite.
- Using the EST Project Explorer, click to expand the folder structures.
- Double-click on the FileaAmountServiceComposite composite
to open the composite editor.
- Select the service icon. The Properties
View displays details about the service in a number of tabs. If the
view is not displaying, click in the composite diagram editor and
select Show Properties View.
- On the Core tab, edit the Name field to rename the service
for the AddAmount component from EXADDAMTPort to AddAmountService.
- On the Interface tab, check the values for the Interface
type and Interface fields. These values are provided for
you based on the values that you entered in the New component wizard.
- To add a CICS binding to the service, go to the Binding
tab, select Bindings, click Add, and select CICS.
- Set the name of the binding to EXADDAMT and
the mapping mode as direct.
- Select the component in the composite editor. The Properties View updates to display information about
the component.
- On the Implementation tab, check the values for the Component
type, Program, and Call type fields. These values are provided
for you based on the values that you entered in the New component
wizard.
Results
You have created a component and service that uses the EXADDAMT
program.
What to do next
Create a component and service for the EXUPDAMT program.