Create an UpdateAmount component and service for the composite.
The component uses the EXUPDAMT 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 EXUPDAMT program.
About this task
You can save your progress at any stage during this task
by using the keyboard shortcut Ctrl+S.
Procedure
- 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 UpdateAmount.
- 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 EXUPDAMTPort - 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\EXUPDAMT.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 UpdateAmount component from EXUPDAMTPort to UpdateAmountService.
- 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 Webservice.
- Set the name of the binding to EXUPDAMT and
the URI as /cics/services/EXUPDAMT.
- Scroll down to edit the CICS attributes for the binding:
- Use the Select button to choose
the Web service binding that you created.
- Edit the Pipeline attribute to define which PIPELINE
resource will handle the Web service request in your CICS region. The pipeline must be configured as a service provider.
- 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.
- Reorganize the components so that they resemble the following
figure:
What to do next
You have created a component and service that uses the EXADDAMT
program.