# Calling a RESTful web service from a naural module

**URL:** <https://techcommunity.softwareag.com/t/calling-a-restful-web-service-from-a-naural-module/188156>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples\
**Created:** [April 27, 2016, 12:33am UTC](https://techcommunity.softwareag.com/t/calling-a-restful-web-service-from-a-naural-module/188156 "2016-04-27T00:33:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Linnen1](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mark\_Linnen1](https://techcommunity.softwareag.com/u/Mark_Linnen1)\
**Post date:** [April 27, 2016, 12:33am UTC](https://techcommunity.softwareag.com/t/calling-a-restful-web-service-from-a-naural-module/188156/1 "2016-04-27T00:33:52Z")

</div>

I have sample code to call a web service using an xml document from a Natural module. But is it possible to do the same thing for a service that only exposes a RESTful API?

Thanks.

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [May 4, 2016, 3:18am UTC](https://techcommunity.softwareag.com/t/calling-a-restful-web-service-from-a-naural-module/188156/2 "2016-05-04T03:18:45Z")

</div>

I am not sure that it matters if the web service is SOAP or RESTful. The Natural functionality uses an HTTP POST to call it so either one should work. Not that I have tried it as we’re using EntireX to SOAP-enable Natural.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:35pm UTC](https://techcommunity.softwareag.com/t/calling-a-restful-web-service-from-a-naural-module/188156/3 "2021-04-02T15:35:55Z")

</div>


