Portlet Factory, Version 6.1.2


 

Service Consumer builder

The Service Consumer builder works with the Service Definition and Service Operation builders and is used to provide access to a public service created by those builders in a service provider model.

 

Key inputs

In most common applications of this builder, you can create a well-defined interface that separates the user interface from the back-end data, and use these inputs to complete your service provider:

  • Name

  • Provider model

  • Override inputs

 

Key objects this builder creates

When used to create a service provider that uses data from a relational database, the key objects this builder creates are:

  • Data service

  • Inputs

  • Results

  • Methods with arguments

 

Samples

A complete sample shows you how to use IBM® WebSphere Portlet Factory to create

samples/gettingstarted/SimpleServiceConsumer.model

 

More about this builder

The operations from the service are available through the WebApp Data Service object created by this builder.

This builder generates the code required to support the following two operating modes:

Single Operation Mode

In this mode you can select an individual operation made available by a Service Provider model. To invoke the service from this builder you select by name a Provider model and an operation contained in that model.

Select Mutiple Operation Mode

In this mode you can select mutiple operations made available by the Service Provider model. By selecting the operation and selecting the enable operation checkbox for each operation, that operation will be exposed in the service consumer.

All Operations Mode

In this mode you can select all operations available in a Service Provider model and call any operation. To invoke the service from a Service Consumer model, reference the Data Service created by the Service Provider.

Once a service is available, to quickly build out a presentation of inputs or results from the service, use builders such as the View & Form builder. That builder lets you specify a Data Service Operation and it automatically finds the input and results variables and creates pages for them. You can also use the variables and methods created by Service Consumer with other builders such as Data Page and Action List builders.

For an example of a Service Consumer model, see: samples/gettingstarted/SimpleServiceConsumer.model in the Tutorials and Samples Applications feature set.

Parent topic: Overview: working with data services Parent topic: Builder help


Library | Support |