# RESTful Web Services from Natural

**URL:** <https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Web-and-XML-Technology\
**Created:** [November 21, 2016, 10:25am UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654 "2016-11-21T10:25:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dougal\_Cunningham1](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@Dougal\_Cunningham1](https://techcommunity.softwareag.com/u/Dougal_Cunningham1)\
**Post date:** [November 21, 2016, 10:25am UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/1 "2016-11-21T10:25:56Z")

</div>

Hi Wizards, Geniuses and all other Brainiacs.

We have a wonderful suite of SOAP Webservices that our clients use to Get and Set data from our Database. We are running Natural 6.3.9 on a Linux OS. We have EntireX running and Brokers / RPCs doing their job.

Basically we create an IDL in Designer 9, generate the XMM file and from that generate the AAR file and deploy. Bazinga working Webservice that we test with SOAPUI.

I have been tasked with trying to replicate these wonderful web services using RESTful web services as well. I have searched and we don’t use web methods and to be honest I am grossly ignorant when it comes to the mechanics behind this. We have a single web service that consumes a RESTful Web service via REQUEST DOCUMENT however we need to provide the Webservice to be consumed.

So my list of questions are:

1. The natural side of things (I figure) is pretty much standard, Receive the data in a dynamic variable and strip out the Contents into the correct fields and either populate the object or return a RESTful dataset. have I already lost the plot?
2. Will EntireX handle the call to our Web service?
3. Please - any information with this regard will really be appreciated.

Many thanks  
Dougal

---

<div class="post-metadata">

**Author:** ![Wayne\_Campos1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wayne_campos1/32/499_2.png) [@Wayne\_Campos1](https://techcommunity.softwareag.com/u/Wayne_Campos1)\
**Post date:** [November 22, 2016, 9:49pm UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/2 "2016-11-22T21:49:39Z")

</div>

The EntireX documentation contains a section titled Support of Representational State Transfer (REST).

I will give you the limitations here:

1. The request document cannot contain groups, arrays, other nested elements, or attributes.

2. Elements cannot be namespace-qualified.

3. Only services that accept requests in plain XML can be called.

Regards,  
Wayne

---

<div class="post-metadata">

**Author:** ![Wayne\_Campos1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wayne_campos1/32/499_2.png) [@Wayne\_Campos1](https://techcommunity.softwareag.com/u/Wayne_Campos1)\
**Post date:** [November 22, 2016, 9:50pm UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/3 "2016-11-22T21:50:16Z")

</div>

The EntireX documentation contains a section titled Support of Representational State Transfer (REST).

I will give you the limitations here:

1. The request document cannot contain groups, arrays, other nested elements, or attributes.

2. Elements cannot be namespace-qualified.

3. Only services that accept requests in plain XML can be called.

Regards,  
Wayne

---

<div class="post-metadata">

**Author:** ![Wayne\_Campos1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wayne_campos1/32/499_2.png) [@Wayne\_Campos1](https://techcommunity.softwareag.com/u/Wayne_Campos1)\
**Post date:** [November 22, 2016, 9:52pm UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/4 "2016-11-22T21:52:30Z")

</div>

The EntireX documentation contains a section titled Support of Representational State Transfer (REST).

I will give you the limitations here:

1. The request document cannot contain groups, arrays, other nested elements, or attributes.

2. Elements cannot be namespace-qualified.

3. Only services that accept requests in plain XML can be called.

Regards,  
Wayne

---

<div class="post-metadata">

**Author:** ![Mary\_Lefferson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mary_lefferson1/32/932_2.png) [@Mary\_Lefferson1](https://techcommunity.softwareag.com/u/Mary_Lefferson1)\
**Post date:** [November 28, 2016, 4:12pm UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/5 "2016-11-28T16:12:24Z")

</div>

Hello Dougal,  
See if this works for you, or at least leads you in the right direction. We have successfully created REST services with this tweak.

Do everything else as you usually would, except for when creating the xmm

- In the Mapping Parameters section, clear the Namespace URI

- In the Mapping section, select Element instead of SOAP and then Generate and Save.

![](https://drive.google.com/open?id=0B6iut32GbgdSWEFJdWJjVTR4aUk)

I hope that helps.  
Regards,  
Mary  
 ![RESTxmm.png](https://global.discourse-cdn.com/techcommunity/original/2X/5/562b442781dddea04984623ac15028188080e0a7.png)

---

<div class="post-metadata">

**Author:** ![RAJ\_SEKHAR](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@RAJ\_SEKHAR](https://techcommunity.softwareag.com/u/RAJ_SEKHAR)\
**Post date:** [November 30, 2016, 10:09am UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/6 "2016-11-30T10:09:21Z")

</div>

I am sorry by mistake it happen

 ![Capture1.PNG](https://global.discourse-cdn.com/techcommunity/original/2X/a/a8913eed7a8c27a2729eb43d985a5e2882f7185f.png)  
 ![Capture2.PNG](https://global.discourse-cdn.com/techcommunity/original/2X/3/312b754db389d530b2df4f09ef7e669999a5ea1b.png)

---

<div class="post-metadata">

**Author:** ![Mahesh\_K\_Sreenivas](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/mahesh_k_sreenivas/32/299_2.png) [@Mahesh\_K\_Sreenivas](https://techcommunity.softwareag.com/u/Mahesh_K_Sreenivas)\
**Post date:** [November 30, 2016, 10:51am UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/7 "2016-11-30T10:51:02Z")

</div>

Kindly refrain from hijacking this post as it is irrelevant to your query. Avoid creating duplicate post and I have asked for more details on the same.

---

<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:37pm UTC](https://techcommunity.softwareag.com/t/restful-web-services-from-natural/191654/8 "2021-04-02T15:37:22Z")

</div>


