circa10a / Easy Soap Request
Licence: mit
Small Node.js library to make SOAP requests easier
Stars: ✭ 99
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Easy Soap Request
Embedio
A tiny, cross-platform, module based web server for .NET
Stars: ✭ 1,007 (+917.17%)
Mutual labels: http-requests
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (-9.09%)
Mutual labels: npm-module
Awesome Node Utils
some useful npm packages for nodejs itself
Stars: ✭ 51 (-48.48%)
Mutual labels: npm-module
Prando
Deterministic pseudo-random number generator for JavaScript and TypeScript
Stars: ✭ 66 (-33.33%)
Mutual labels: npm-module
Webcam Easy
javascript access webcam stream and take photo
Stars: ✭ 79 (-20.2%)
Mutual labels: npm-module
Event Target Shim
An implementation of WHATWG EventTarget interface, plus few extensions.
Stars: ✭ 89 (-10.1%)
Mutual labels: npm-module
Auxpack
A dashboard for monitoring Webpack build stats.
Stars: ✭ 86 (-13.13%)
Mutual labels: npm-module
Afip.js
Libreria para usar los Web Services de AFIP con JavaScript
Stars: ✭ 61 (-38.38%)
Mutual labels: soap
Node Loadbalance
A collection of distilled load balancing engines
Stars: ✭ 79 (-20.2%)
Mutual labels: npm-module
Actix Ratelimit
Rate limiter framework for Actix web
Stars: ✭ 90 (-9.09%)
Mutual labels: http-requests
Stormer
Wrappers for making load test with locust more convienient.
Stars: ✭ 41 (-58.59%)
Mutual labels: http-requests
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (-25.25%)
Mutual labels: npm-module
Tplink Cloud Api
A node.js npm module to remotely control TP-Link smartplugs (HS100, HS110) and smartbulbs (LB100, LB110, LB120, LB130) using their cloud web service (no need to be on the same wifi/lan)
Stars: ✭ 96 (-3.03%)
Mutual labels: npm-module
Xmlmapper
A simple way to map XML to Objects written in Swift
Stars: ✭ 90 (-9.09%)
Mutual labels: soap
Wsdl Creator
PHP WSDL Creator using PHPdoc (annotations, reflections).
Stars: ✭ 79 (-20.2%)
Mutual labels: soap
easy-soap-request
A small library to make SOAP requests easier via Node.js, Deno, and your browser
Installation
npm install easy-soap-request
Requirements
- Node.js >=7.6.0 (async/await support)
Usage
Node.js
const soapRequest = require('easy-soap-request');
const fs = require('fs');
// example data
const url = 'https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php';
const sampleHeaders = {
'user-agent': 'sampleTest',
'Content-Type': 'text/xml;charset=UTF-8',
'soapAction': 'https://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListZipCode',
};
const xml = fs.readFileSync('test/zip-code-envelope.xml', 'utf-8');
// usage of module
(async () => {
const { response } = await soapRequest({ url: url, headers: sampleHeaders, xml: xml, timeout: 1000 }); // Optional timeout parameter(milliseconds)
const { headers, body, statusCode } = response;
console.log(headers);
console.log(body);
console.log(statusCode);
})();
Deno
import soapRequest from 'https://deno.land/x/easy_soap_request/index.d.js';
// example data
const url = 'https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php';
const sampleHeaders = {
'user-agent': 'sampleTest',
'Content-Type': 'text/xml;charset=UTF-8',
'soapAction': 'https://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListZipCode',
};
// usage of module
(async () => {
const xml = await Deno.readFile('test/zip-code-envelope.xml');
const { response } = await soapRequest({ url: url, headers: sampleHeaders, xml: xml });
const { headers, body, statusCode } = response;
console.log(headers);
console.log(body);
console.log(statusCode);
})();
Browser
Note: CORS policies apply
<html>
<script src="https://cdn.jsdelivr.net/npm/easy-soap-request/dist/easy-soap-request.js"></script>
<script>
const url = 'https://my-soap-server';
const sampleHeaders = {
'Content-Type': 'text/xml;charset=UTF-8',
SOAPAction: 'https://my-soap-action/something',
};
const xml = `<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>Some Data</soapenv:Body>
</soapenv:Envelope>`;
async function makeRequest() {
const { response } = await soapRequest({ url: url, headers: sampleHeaders, xml: xml, timeout: 1000 });
const { headers, body, statusCode } = response;
console.log(headers);
console.log(body);
console.log(statusCode);
document.body.innerHTML = body;
};
makeRequest();
</script>
<body></body>
</html>
Changelog
Tests
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].