Let's suppose a service having the following features:
- It exposes a REST endpoint receiving a list of requests.
- It in parallel invokes a SOAP service, once per element in the requests list.
- It returns the converted result from XML to JSON.
That service's code could look something like this using Node.js and Express, and Airbnb JavaScript Style Guide:
'use strict';