Portlet Factory, Version 6.1.2
Exposing a method and using it in a service consumer
Follow these steps to expose a method and use it in a service consumer.
- Create a model that provides functionality that you want to expose as a service. An example might be a method that returns a list of records from a backend database, such as SAP or PeopleSoft. The model should provide a method (that may or may not take arguments) that returns the desired data. The returned data can be directly returned from the method, or placed in a known schema typed variable.
- Add a Service Provider builder to your model and select the appropriate method to expose.
- Save and close the Service Provider model.
- Create or open an existing model that you want to have consume the provided service.
- In this consumer model add a Service Consumer builder and select the provider model and method. The Service Consumer builder will add a local method to your model that can be used to invoke the service. The service inputs and outputs will be exposed as variables.
- Add builders to your model to invoke the service method and process the output.
Parent topic: Service Consumer builder
Library | Support |