# Wrapping a Natural subprogram as a REST/JSON web service

**URL:** <https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [September 3, 2015, 9:34am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661 "2015-09-03T09:34:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Willie](https://avatars.discourse-cdn.com/v4/letter/w/838e76/32.png) [@Willie](https://techcommunity.softwareag.com/u/Willie)\
**Post date:** [September 3, 2015, 9:34am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/1 "2015-09-03T09:34:57Z")

</div>

Hi All,

Are you able to suggest how we can wrap a Natural subprogram as a REST/JSON web service?

We have been using Designer to create SOAP web services, but have been asked to supply REST/JSON.

Moderator, I know you will redirect this query to the appropriate forum. This is the best I can do.

Regards,

Willie

---

<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:** [September 3, 2015, 9:52am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/2 "2015-09-03T09:52:24Z")

</div>

You can’t get JSON out of an EntireX wrapped service, for REST please have a look at

[http://techcommunity.softwareag.com/web/guest/techniques-blog/-/blogs/entirex-restful-services](http://techcommunity.softwareag.com/web/guest/techniques-blog/-/blogs/entirex-restful-services)

---

<div class="post-metadata">

**Author:** ![Willie](https://avatars.discourse-cdn.com/v4/letter/w/838e76/32.png) [@Willie](https://techcommunity.softwareag.com/u/Willie)\
**Post date:** [September 3, 2015, 10:27am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/3 "2015-09-03T10:27:15Z")

</div>

Thank you, Wolfgang.

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [September 3, 2015, 12:40pm UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/4 "2015-09-03T12:40:00Z")

</div>

If your company should happen to have webMethods Integration Server as well as EntireX, you could easily expose it as JSON 😉

---

<div class="post-metadata">

**Author:** ![Willie](https://avatars.discourse-cdn.com/v4/letter/w/838e76/32.png) [@Willie](https://techcommunity.softwareag.com/u/Willie)\
**Post date:** [September 4, 2015, 6:48pm UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/5 "2015-09-04T18:48:53Z")

</div>

Thank you, Finn, we’ll check our license.

---

<div class="post-metadata">

**Author:** ![Ivan1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ivan1/32/192_2.png) [@Ivan1](https://techcommunity.softwareag.com/u/Ivan1)\
**Post date:** [September 7, 2015, 8:10am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/6 "2015-09-07T08:10:31Z")

</div>

Hi

We use WCF service to wrap and extract data via EntireX and sub programs.  
You can use the Eclipse tool to generate the code, but we found it better to write it and only use the EntireX dll.

With MVC we do some Json and ajax calls after retrieving the data from the mainframe.

That is because we do not have a webMethods licence.

If you need more info regarding the WCF, please do not hesitate to ask.

---

<div class="post-metadata">

**Author:** ![Stefan3](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/stefan3/32/245_2.png) [@Stefan3](https://techcommunity.softwareag.com/u/Stefan3)\
**Post date:** [January 6, 2016, 9:20am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/7 "2016-01-06T09:20:33Z")

</div>

Hello,

we use Integration Server with its EntireX adapter to publish Natural modules as services. It’s quite easy and you can provide SOAP and REST services with only a few clicks. The implementation details are discussed here: [REST implementation on Integration Server](http://tech.forums.softwareag.com/techjforum/posts/list/15/32412.page).

Best regards,  
Stefan

---

<div class="post-metadata">

**Author:** ![Skater\_Fever](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/skater_fever/32/1240_2.png) [@Skater\_Fever](https://techcommunity.softwareag.com/u/Skater_Fever)\
**Post date:** [August 15, 2016, 6:24am UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/8 "2016-08-15T06:24:09Z")

</div>

We recently tried webMethods Integration server but management did not buy it. 😢

Hope anyone can give us a clue, so we can start developing this on Eclipse…

Thanks.

> [@Ivan](#):
>
> Hi
> 
> We use WCF service to wrap and extract data via EntireX and sub programs.  
> You can use the Eclipse tool to generate the code, but we found it better to write it and only use the EntireX dll.
> 
> With MVC we do some Json and ajax calls after retrieving the data from the mainframe.
> 
> That is because we do not have a webMethods licence.
> 
> If you need more info regarding the WCF, please do not hesitate to ask.

---

<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:34pm UTC](https://techcommunity.softwareag.com/t/wrapping-a-natural-subprogram-as-a-rest-json-web-service/183661/9 "2021-04-02T15:34:07Z")

</div>


