Introduction

Web Services connector is used generally to trigger a scenario and pass parameters through a web service request.

Icon

2022-10-10_12h08_08.png

Configuration

The first step to making a web service listener work is to create a client configuration.

2022-10-10_12h04_27.png2022-10-10_12h09_25.png

  • URI: refers to the alias of configuration
  • active: a boolean value to enable or not the client configuration.
  • asynchronous: whether you want to send the request synchronously (false) or asynchronously (true).

Uses

You can send HTTP requests using Postman. 

The input must take one of the 4 events: 

  1. no params and no input. just a scenario triggers.
  2. params passed via the URI, as RequestParams
  3. file upload
  4. send a body object in the request (XML, JSON...)

Each HTTP Method takes some or all events:

  • GET : events 1 & 2.
  • POST : events 1, 2, 3 & 4.
  • PUT:  events 1, 2, 3 & 4.
  • DELETE:  events 1 & 2.

Example

let's assume that we have a client configuration called 'HelloWorld', and try to send an event with the POST method.

the Scenario : 2022-10-10_15h33_15.png 

and the listener : 2022-10-10_15h43_24.png

We will send an XML object to WSListener using Postman, in order to insert a simple Tracking.

2022-10-10_15h47_41.png

 

Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian