Rational Developer for System z

Create an InquireAmount component and service

Create an InquireAmount component and service for the composite. The component uses the EXINQAMT program.
You must have created a composite in the FileaAmountServices project, created a componentType file, and generated the Service artifacts for the EXINQAMT program.
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.

To create an InquireAmount component and service, complete the following steps:

  1. Open the composite in the composite editor by browsing the SCA project to find the namespace container and double-clicking on the FileaAmountServiceComposite composite.
  2. 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.
  3. Edit the text in the component to change the name to InquireAmount.
  4. 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.
  5. Rename the service to InquireAmountService and set its properties:
    1. Right-click in the composite diagram editor and select Show Properties View.
    2. Click the icon for the service to show its properties.
    3. On the Core tab of the Properties View, edit the Name field to enter InquireAmountService.
    4. 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.
  6. Add a CICS binding to the service:
    1. On the Binding tab in the Properties View, select Bindings and click Add.
    2. In the Add New Binding dialog, select CICS.
    3. 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.
  7. Configure the Implementation for this component:
    1. 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.
    2. 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.
You have now created a component and its service and configured the implementation to use the correct component type.
Create the next component and service for the composite application.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)