# How do I load 'http' module in an embedded device?

**URL:** <https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045>\
**Category:** General\
**Created:** [23 August 2021 10:20 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045 "2021-08-23T10:20:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyghtrider](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nyghtrider](https://discourse.nodered.org/u/nyghtrider)\
**Post date:** [23 August 2021 10:20 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045/1 "2021-08-23T10:20:52Z")

</div>

Hi everyone, my first time here so I hope you can help with my problem. I have an embedded device running Node-Red V1.3.5 so I don't have access to the 'settings.js' file. I wish to use 'soap' and 'http' modules to generate a SOAP webservice but I can't find how to load the 'http' module into the flow to make it available for the SOAP Server node. I have learnt that I can use the NPM node which does allow the 'soap' module to load but it won't load the 'http' module. How do I load the 'http' module into the flow to make it available to the server? Thank you in advance for your time.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 August 2021 10:29 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045/2 "2021-08-23T10:29:05Z")

</div>

whats wrong with using the built in http in, http request & http out nodes?

---

<div class="post-metadata">

**Author:** ![nyghtrider](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nyghtrider](https://discourse.nodered.org/u/nyghtrider)\
**Post date:** [23 August 2021 10:39 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045/3 "2021-08-23T10:39:55Z")

</div>

The soapserver node ( [soap - npm](https://www.npmjs.com/package/soap)) has a http.createServer object which uses global.get('soap') and global.get('http') to call the external modules. How do I use the built-in nodes to do the same job.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 August 2021 10:46 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045/4 "2021-08-23T10:46:22Z")

</div>

Have you tried the soap contrib nodes?

e.g. [node-red-contrib-soapserver (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-soapserver) - this one doesnt require you to add `require`s in settings.js

---

<div class="post-metadata">

**Author:** ![nyghtrider](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@nyghtrider](https://discourse.nodered.org/u/nyghtrider)\
**Post date:** [23 August 2021 11:01 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045/5 "2021-08-23T11:01:44Z")

</div>

Thanks Steve, I did see that some months ago but the rabbit hole led me down a different path and I ended with the soap-npm and hit the wall. It works well on my Pi but I can edit the settings.js there. I'll try it now and load my own code into it. Please allow 24 hrs as it's late pm here.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 October 2021 11:02 UTC](https://discourse.nodered.org/t/how-do-i-load-http-module-in-an-embedded-device/50045/6 "2021-10-22T11:02:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
