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
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Service Consumer builder inputs
This topic describes the inputs for the Server Consumer builder.
- Objects Created by the Service Consumer builder
This topic describes the objects, such as LJOs, variables, methods and data services, that are created by the Service Consumer builder in the WebApp.
- Exposing an operation in a service provider model and using it in a service consumer model
This topic describes how to exposing an operation in a Service Provider model and use it in a Service Consumer model.
- Rich Data Definition builder
The Rich Data Definition builder lets you associate rich user interface (UI) descriptions with fields that are defined in a schema.
- Using data services
IBM WebSphere Portlet Factory provides the services category of builders that you can use to create, test, use, and document data services.
Library | Support |