Show last authors
1 = __**Definition:**__ =
2
3
4 Webservice is a connector used to send data with other web applications.
5
6 = __**Icon:**__ =
7
8
9 [[image:1667487132740-653.png]]
10
11 = __**Configuration:**__ =
12
13
14 There is 2 parts in configuring of the webservice connector:
15
16
17 * (((
18 ===== **Configuring the Webservice in the ConfigurationCOM menu:** =====
19
20
21 )))
22
23 [[image:1667487261988-482.png]]
24
25
26 In order to use the Webservice, you have first to configure it in the ConfigurationCOM menu in the portal in the distant tab. This configuration is unique to the environment, and cannot be reused in another environment.  
27
28
29 [[image:1667487553991-372.png]]
30
31
32 There are many parameters to configure for the WebService connector:
33
34
35 (((
36 * __**Name**__: The name of the distant Webservice used
37
38 * __**IP/host**__: The domain name of the servor or the IP address used
39
40 * __**URI**__: The path in the IP/host used to send the files
41
42 * __**Method**__: signifies the method used to get the data( GET, POST, PUT, DELETE)
43
44 * __**Port**__: The port of the listening
45
46 * __**Protocol**__: The protocole used (HTTP ou HTTPS)
47
48 * __**Authentification Mode**__: There is 2 different ways for the authentification mode
49 ** __**Basic**__: is a mode that needs 3 attributes(**header**: the header'name, **user **encoded in base64, **password **encoded in base64)
50 ** __**Token**__: is a mode that consists on putting a token in the header. This mode uses 2 parameters: The **header** and the **token** is an encoded and encrypted data with a unique key using the HASHMAC algorithm.
51
52 * __**Timeout**__: is the max time acceptable to connect to the WS and get the result.
53
54 * __**Charset**__: is the encodage of the json file that will be sent to WS and of the result file
55
56
57 * (((
58 ===== **Configuring the Webservice connector in the scenario:** =====
59
60
61 )))
62
63 Second, you have to configure the connector in the Scenario menu.
64
65
66 [[image:1667492134946-717.png]]
67
68
69 For this configuration, you have to fill these parameters:
70
71 * __**Destinataire**__: The environment where the distant configuration exists
72
73 * __**Config**__: The name of the distant configuration in the chosen environment
74
75 * __**Dyn.enveloppe**__: is a Yes or No value that mentions if the enveloppe is dynamic
76
77 * __**Enveloppe**__: if the enveloppe is fixed, this parameter is for uploading the enveloppe file or the connector's name that contains the file and if it is dynamic, you mention the connector's name that contains the enveloppe.
78
79 * __**Data**__: the connector's name that contains the data
80
81 * __**Output FileName**__: The output file name
82
83 ==== __**Elements of the WS:**__ ====
84
85
86 * (((
87 ====== __**The enveloppe:**__ ======
88
89
90 It contains the enveloppe of the informations that will be transferred to the WS.
91
92 The enveloppe can be linked to the message data in this way.
93
94 * **%DATA%** : Le content of the file mentionned in the parameter DATA will the same in the message
95
96 * **%DATA64%** : the message file linked to DATA will be encoded in base 64 and inserted
97
98 * **%DATAZIP%** : the message file linked to DATA will be zipped and inserted
99
100 * **%DATAZIP64%** : the message file linked to DATA will be encoded in base 64 and zipped then inserted
101
102 __**Note**__: The enveloppe may be:
103
104 * uploaded in the enveloppe parameter of the WS as a file or as a connector name that contains the file
105
106 * inserted with a reference to the message
107
108
109 )))
110 * (((
111 ====== __**The message:**__ ======
112
113
114 It contains the content of the message that will be transferred to the WS, it will be inserted inside the enveloppe of the connector. The message can be uploaded dynamically using the elements of the scenario or can be fixed and uploaded inside the WS connector.
115
116
117 )))
118 )))
119
120 ==== __**Example:**__ ====
121
122
123 * **Scenario:**
124
125 [[image:1667577279879-137.png]]
126
127
128 * **Enveloppe:**
129
130 [[image:1667577352836-357.png]]
131
132
133 * **Result: **is the encoded file that exists in the connector FileDetection1 in base 64.
134
135 [[image:1667579240866-555.png]]
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian