To call SS-generated DLLs in Nodejs, you need to use Edgejs.
edgejs:http://tjanczuk.github.io/edge/
If you don't know how to build a DLL in SS, see: Spider Studio New Version (X-mas)-you can introduce a third-party assembly, you can create a script as a DLL
Here's an example of a xml/json-turn script that has been written (C # to solve the problem of json/xml interactions) to explain how to apply SS DLLs in Nodejs:
1. Install Edgejs
NPM Install Edge
2. Write a JavaScript proxy script for Www.utilities_online.info.XmlJsonConverter.dll
Altogether two methods, Xml2json & Json2xml:
var edge = require (' Edge ');
Exports.xml2json = Edge.func ({source:function () {* * * using System.Threading;
Using System.Threading.Tasks;
Using Www.utilities_online.info;
public class Startup {public async task<object> Invoke (object input) {
object result = NULL; Thread t = new Thread (new Parameterizedthreadstart (p) => {using (var proxy = new Xmljsonconverter ()) {Proxy.
Init (); result = Proxy.
Xml2json (P.tostring ());
}
} ));
T.setapartmentstate (ApartmentState.STA);
T.isbackground = true;
T.start (input);
while (t.threadstate!= threadstate.stopped) {thread.sleep (100);
return result;
}
} */}, references: [__dirname + ' \\www.utilities_online.info.XmlJsonConverter.dll ']});
Exports.json2xml = Edge.func ({source:function () {* * * using System.Threading;
Using System.Threading.Tasks;
Using Www.utilities_online.info;
public class Startup {public async task<object> Invoke (object input) {
object result = NULL; Thread t = new Thread (new Parameterizedthreadstart (p) => {using (var proxy = new Xmljsonconverter ()) {Proxy.
Init (); result = Proxy.
Json2xml (P.tostring ());
}
} ));
T.setapartmentstate (ApartmentState.STA);
T.isbackground = true;
T.start (input);
while (t.threadstate!= threadstate.stopped) {thread.sleep (100); return result; } */}, references: [__dirname + ' \\www.utilities_online.info.XmlJsonConverter.dll ']});