const soap = require('soap')
const baseUrl = 'https://hapi.grupoboticario.com.br/grb/sb/credencial/autenticacao'
const params = '?client_id=8555e562-496b-4c18-b6c6-6d56e337b494'
const url = baseUrl.concat(params)
const args = {
"login": "771519",
"senha": "Prime@123",
"origem": "GERASGI_BOT"
}
soap.createClient(url, function(err, client) {
if (err) {
console.log(err)
throw new Error('Deu ruim')
}
client.MyFunction(args, function(err, result) {
console.log(result);
});
});