Show last authors
1 = Introduction =
2
3 Web Services connector is used generally to trigger a scenario and pass parameters through a web service request.
4
5 = Icon =
6
7 [[image:2022-10-10_12h08_08.png]]
8
9 = Configuration =
10
11 The first step to making a web service listener work is to create a client configuration.
12
13 [[image:2022-10-10_12h04_27.png||height="74" width="245"]][[image:2022-10-10_12h09_25.png||height="133" width="708"]]
14
15 * URI: refers to the alias of configuration
16 * active: a boolean value to enable or not the client configuration.
17 * asynchronous: whether you want to send the request synchronously (**false**) or asynchronously (**true**).
18
19 = Uses =
20
21 You can send HTTP requests using Postman.
22
23 The input must take one of the 4 events:
24
25 1. no params and no input. just a scenario triggers.
26 1. params passed via the URI, as RequestParams
27 1. file upload
28 1. send a body object in the request (XML, JSON...)
29
30 Each HTTP Method takes some or all events:
31
32 * **GET **: events 1 & 2.
33 * **POST **: events 1, 2, 3 & 4.
34 * **PUT**:  events 1, 2, 3 & 4.
35 * **DELETE**:  events 1 & 2.
36
37 = Example =
38
39 let's assume that we have a client configuration called '__//HelloWorld//__', and try to send an event with the POST method.
40
41 the Scenario : [[image:2022-10-10_15h33_15.png]]
42
43 and the listener : [[image:2022-10-10_15h43_24.png]]
44
45 We will send an XML object to WSListener using Postman, in order to insert a simple Tracking.
46
47 [[image:2022-10-10_15h47_41.png||height="379" width="636"]]
48
49
50
51
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian