Javascript – How to return data in SOAP from Promise
I created a SOAP server in Node.js const soap = require('soap'); const http = require('http'); const XMLWriter = require('xml-writer'); const service = { ImpDispatcherService: { ImpDispatcher: { performTest: function (args) { const xw = new XMLWriter(true); xw.startDocument(); xw.startElement('result'); queryDatabase(args.parameter1, xw).then(success…