Add Composite Service Methods and Compose Service

After creating a Composite Webservice datasource, you can add composite service methods and compose service that executes different operations corresponding to the associated webservice methods.

  1. Click Add Composite Service Methods.
  2. Enter a name for webservice method in the Method Name field.
  3. The Method URL is populated based on the Method Name that you specify. The Method Name is considered as the Function URL to access the webservice method. If the Method Name consists of any spaces and capital letters, in Method URL the spaces are replaced with - (hyphen) and the capital letters are replaced with simple case. For example, if you specify My Webservice Mehtod as Name, the Method URL will be formed as /my-webservice-method.
  4. Enter the string to append to the Base URL to access the corresponding webservice method in Function URL field.
  5. Select a Method to perform corresponding operation. The following options are available:
    • POST: Used to create an entity.
    • GET: Used to read an entity.
    • PUT: Used to update an entity.
    • DELETE: Used to delete an entity.
  6. Under Data type, specify the format to send the payload to the method. The available options are JSON, Files, Form URL Encoded and XML. The Files and XML data types are applicable only for POST and PUT operations.
  7. Under Headers, specify the app-related information that you want to pass to the web service. Enter the key-value pair to form the required header, and enable the Overwrite toggle bar if you want to update the key-value pair with the values specified in the run time. Click Add to specify more headers.
  8. Under Parameters, specify the parameters that you want to send to the corresponding operation. Enter the key-value pair to form the required parameter, and define if you want to pass the parameter as a path or a query. Enable the Overwrite toggle bar if you want to update the key-value pair with the values specified in the run time. Click Add to specify more parameters.
  9. Select Limit and Offset values. These fields are available only for Select type of Operation. The limit option allows to limit the number of rows returned from a query. The offset allows to omit a specified number of rows before the beginning of the result set. Using both limit and offset skips both rows as well as limits the rows returned.
  10. Click Compose Service and Design Composite Workflow.
  11. Click Save Details.
  12. The composite service methods are added and composite workflow is designed.