-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsoapResponse.html
41 lines (39 loc) · 1.54 KB
/
soapResponse.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<script type="text/x-red" data-help-name="soapresponse">
<p>This node respond to a previous SOAP request.</p>
<p>This node works only if used in conjunction with a previous soap soapserver
node that starts a flow. It builds and sends back response to
a waiting SOAP client that made a previous call to start the flow in the
first place. The content of the <code>msg.payload</code> structure is sent back in
the response body and should be a string. If <code>Response Wrapper</code> is set, data returned
with response will be wrapped in a tag that correspond to the defined value; if no value is
defined it will be set by default to payload.</p>
</script>
<script type="text/x-red" data-template-name="soapresponse">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-wrapper"><i class="fa fa-tag"></i> Respone Wrapper</label>
<input type="text" id="node-input-wrapper" placeholder="payload">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('soapresponse',{
// node definition
category: "soap",
inputs: 2,
outputs: 0,
icon: "white-globe.png",
align: "right",
color: "#a6bbcf",
paletteLabel: "soap server",
label: function () {
return this.name || "soap server"
},
defaults: {
name: { value: "" },
wrapper: {value: ""}
}
});
</script>