SAP ByDesign SOAP based web services consumption in NodeJS

Here is a small example how to consume SAP BYD SOAP services in NodeJS.

I’m going to use this service¬†https://help.sap.com/doc/saphelp_byd1711_en/2017.11/en-US/PUBLISHING/PSM_ISI_R_II_QUERY_JOURNAL_ENTRY_IN.html

This QueryJournalEntryIn service is for reading journal entries from BYD system.
Example SOAPUI request:

Doing the same thing with NodeJS, express middlware and node-soap npm package.
We are still using the WSDL query but instead of using the default queries provided by the WSDL we can define our own just like in SOAPUI.

 

In the example above i’m also making multiple queries to SOAP service since I only need few specific document types:

 

 

And now e get response back from ByDesign:

That’s it. If any questions, please leave a comment below.