prisme-flow
Version:
prisme platform flow engine
54 lines (49 loc) • 1.85 kB
HTML
<!--
Created by prisme.io on 09/06/2017.
@author <a href="mailto:hello@prisme.io">savane vamara</a> (prisme.io)
-->
<script type="text/javascript">
RED.nodes.registerType('soapserver',{
// node definition
category: "utility",
inputs: 0,
outputs: 1,
icon: "soap.png",
color: "#a6bbcf",
label: function () {
return this.name || "soap server"
},
paletteLabel: "soap server",
defaults: {
name: { value: "" },
port: {
value: null,
required: true,
validate: RED.validators.number()
}
}
});
</script>
<script type="text/x-red" data-help-name="soapserver">
<p>Listen for an incoming SOAP request.</p>
<p>This node exposes a fixed WSDL definition that has an operation defined
upon it which, when invoked passed a single string from the caller that is placed
in <code>msg.payload</code> and the a flow is started.</p>
<p>The configuration for this node is a TCP port number upon which the
Node-RED server will listen for incoming requests.</p>
<p>There is a companion node to this one which returns a result to the
waiting SOAP/HTTP client.</p>
<p>The endpoint URL for a SOAP/HTTP client is <code>http://prisme-flow:port/soap</code>.
The WSDL document for the Web Service can be retrieved from an HTTP GET request
to that address with the query string of <code>?wsdl</code>.</p>
</script>
<script type="text/x-red" data-template-name="soapserver">
<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-port"><i class="icon-tasks"></i> Port</label>
<input type="text" id="node-input-port" placeholder="Port">
</div>
</script>