using Node.js to call backend on regular interval of time

Not applicable

Hi, i have a requirement to call soap web service for list of mobile numbers/MSISDN to check its status for new promotions. If particular number is having new promotions then need to send push notification to that number. While making call to webservice, i need to build soap message body as expected by back end and get response. How do i achieve this by Node.js? I am new to Node.js. Please suggest on this at the earliest.

OR can i achieve this JavascriptHttpclient? Please suggest

0 1 1,225
1 REPLY 1

Former Community Member
Not applicable

Here's one way to do it:

1: Create an API Proxy that uses Assign Message Policy to build a SOAP request and transforms the response to JSON.

2: Create a second API proxy (node.js backend) that uses a scheduler like (https://www.npmjs.com/package/node-schedule) to invoke the first API proxy. This way node.js doesn't have to deal with SOAP.