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.

  1. 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.

  2. Add a Service Provider builder to your model and select the appropriate method to expose.

  3. Save and close the Service Provider model.

  4. Create or open an existing model that you want to have consume the provided service.

  5. 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.

  6. Add builders to your model to invoke the service method and process the output.

Parent topic: Service Consumer builder


Library | Support |