Wednesday, July 16, 2008

Interface

Interface How to

Websphere Integration Developer v612

Contact us...

Table of Contents

How to create an Interface

How to add an Interface to a Component

How to create an interface
Related links

Creating interfaces

Interface editor

Interface

This is a completed request/response interface.

The following steps below describe how to create this interface.

Pre-requisites

  • You must have created a Library or a Module as a container for this interface.

  • You must have created a business object required by this interface

Create an Interface

In the Business Integration view, right-click the Interfaces folder and select New > Interface.

Name the interface

Enter the interface name (i.e StockQuoteService) in the Name box and click Finish.

Empty interface

An empty interface is created.

Add Request Response Operation

Click on the Add Request Response Operation icon to add a two way operation.

Default Request Response Operation

A default Request Response Operation and input/output are added.

Note:

Click on the triangle (left side of operation1) to show/hide the input/output items.

Customize Interface attributes name

After a two-way operation is created, continue as follows.

  1. Rename the default operation name (operation1) as required (i.e getQuote)
  2. Rename the default input name (input1) as required (i.e request)
  3. Rename the default output name (output1) as required (i.e response)
Note:
To change the attribute name, select the current name and typeover.

Customize Interface Input/Output type

Change input/output type as required.

To change the type,

  1. click the current Type (i.e, string) to display available types
  2. Find the required type (you may have to scroll up/down the list to find the type you need)
  3. Select the required type (i.e StockQuoteRequest).
  4. The selected type will replace the current type.

Interface completed
An interface with the required customization is completed.

How to add an Interface to a Component

Related links Creating interfaces

1-Add an Interface to a Component

Right-click the component and select Add > Interface.

2-Select the Interface

Select the interface you want to add and click OK.

3- An Interface is added

How to add an Interface to a Component - Alternative 2

Related links Creating interfaces

1-Add an Interface to a Component

Right-click the component and select Add > Interface.

2-Select the Interface

Select the interface you want to add and click OK.

3- An Interface is added

No comments: