easy-soap-request
easy-soap-request copied to clipboard
Soap Call failing without getting any error
I am making a soap call like this but only thing that gets printed is the log statement in catch block without any err object. am I doing something wrong here. try { const { response } = await soapRequest({ url: url, headers: { "Content-Type": "text/xml;charset=UTF-8", soapAction: actionUrl, }, xml: reqBody, timeout: 10000, }); const { headers, body, statusCode } = response; console.log(headers); console.log(body); console.log(statusCode);
} catch (err) {
console.log("Error is Soap API call", err);
}