forked from chameleonbr/node-red-contrib-soap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
soap-node.html
54 lines (50 loc) · 2.17 KB
/
soap-node.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
42
43
44
45
46
47
48
49
50
51
52
53
54
<script type="text/javascript">
RED.nodes.registerType('soap request', {
category: "function",
icon: "white-globe.png",
color: "#a6bbcf",
inputs: 1,
outputs: 1,
defaults: {
name: { value: "" },
topic: { value: "" },
wsdl: {value: "", type: "soap-config"},
method: {value: "", required: true}
},
label: function () {
return this.name || "SOAP"
}
});
</script>
<script type="text/x-red" data-template-name="soap request">
<div class="form-row">
<label for="node-input-wsdl"><i class="fa fa-globe"></i> WSDL</label>
<input type="text" id="node-input-wsdl" placeholder="WSDL">
</div>
<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-topic"><i class="icon-tasks"></i> Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic">
</div>
<div class="form-row">
<label for="node-input-method"><i class="icon-tag"></i> Method</label>
<input type="text" id="node-input-method" placeholder="Method">
</div>
</script>
<script type="text/x-red" data-help-name="soap request">
<p>Node-red nodes that allow users to send SOAP request.</p>
<p>To set up SOAP request, create a new soap config </p>
<p>In the SOAP request config tab, enter the valid method name in *Method* field. Having an invalid method name will return error.</p>
<p>You can also feed in parameters and overwrite configs with an injected msg: </p>
<p>
<ul>
<li>You can have <b>msg.server</b> to overwrite the WSDL address. This only works with WSDL server with no authentication method.</li>
<li>You can have <b>msg.options</b> to add in options to the SOAP request.</li>
<li>You can have <b>msg.headers</b> to add in headers for the SOAP request.</li>
<li>You can feed in <b>msg.payload.<parameters></b> to feed in the parameters you need.</li>
</ul>
</P>
</script>