const soap = require('soap');
// WSDL URL
const url = 'https://agenda.tvcabo.co.mz:90/BeOnServices/TVCabo/BillinggateQT/Billinggate.asmx?WSDL';
//const url = "https://api.tvcabo.mz/BeOnServices/TVCabo/BillinggateQT/Billinggate.asmx??WSDL";
// Create the client
soap.createClient(url, function(err, client) {
if (err) {
console.error('Error creating client:', err);
return;
}
// Define the arguments
const args = {
NContrato:01709864784
};
console.log(client.ClientePrevFact)
// return;
// Make the request
client.ClientePrevFact(args, function(err, result) {
//if (err) {
// console.error('Error making SOAP request:', err);
//return;
//}
console.log('SOAP response:', err);
});
});