IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Calling services

Importing the ServiceGateway interface and schema

A service gateway has a single generic export and a single generic gateway interface. The generic gateway interface named ServiceGateway, along with schema files, is provided for you. You can import the predefined service gateway resources into your module or library.

You can quickly create all of the starter artifacts for a service gateway, including the data handlers and interfaces described here, by using pattern generators that are provided in the Patterns Explorer.


Procedure

To import the predefined ServiceGateway interface and schema:

  1. In the Business Integration view, expand a module, mediation module, or library.
  2. Double-click Dependencies to open the Dependency Editor.
  3. Expand the Predefined Resources section.

  4. Select Service gateway interface.

  5. Select Native Body schema for Native Body DataHandler.

  6. In the Business Integration View, expand your project's Data Types and Interfaces category. If the data types and ServiceGateway interface that are created under the StandardImportFilesGen folder in each category.

  7. Double-click the ServiceGateway interface to open it in the Interface Editor. As you can see, the interface as two operations; requestOnly and requestResponse.


What to do next

You can now add the generic gateway interface ServiceGateway to the export of your gateway module.

Calling services