# calling a web service from natural

**URL:** <https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [February 20, 2005, 7:27pm UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843 "2005-02-20T19:27:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmathew](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@rmathew](https://techcommunity.softwareag.com/u/rmathew)\
**Post date:** [February 20, 2005, 7:27pm UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843/1 "2005-02-20T19:27:09Z")

</div>

Hi  
  
What would I need and have to do to call a webservice from a Natural Subprogram.  
  
robin

---

<div class="post-metadata">

**Author:** ![James1](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@James1](https://techcommunity.softwareag.com/u/James1)\
**Post date:** [March 4, 2005, 4:41am UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843/2 "2005-03-04T04:41:21Z")

</div>

robin,  
  
EntireX provides a JAVA RPC Server that NATURAL can call using the SYSRPC library. The JAVA RPC Server can then make the web services call.  
  
James

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [March 11, 2005, 10:27pm UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843/3 "2005-03-11T22:27:54Z")

</div>

An easier option might be to make use of the XML Wrapper. You can import the WSDL File of the Web Service you want to invoke. The Workbench will create an IDL file, as well as the appropriate SOAP Mappings.   
  
You can then start the XML RPC Server, which will register to the Broker as a service. When your Natural program performs the CALLNAT, a RPC call will be sent to the XML RPC Server, which will invoke the Web Service.  
  
Attached is a document that gives a high level overview of the steps to take. Also refer to the EntireX documentation for more details.   
  
Regards  
Theo  
[How\_to\_Consume\_a\_Web\_Services\_from\_Natural\_-\_v1.pdf](https://techcommunity.softwareag.com/uploads/short-url/uxBkMhuGj3DQRcx0hXjRraNUAve.pdf) (1.11 MB)

---

<div class="post-metadata">

**Author:** ![DaveLaw](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@DaveLaw](https://techcommunity.softwareag.com/u/DaveLaw)\
**Post date:** [March 31, 2005, 9:08pm UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843/4 "2005-03-31T21:08:48Z")

</div>

We need to do this using https & sign it with an X509 certificate.  
What are the options?

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [April 5, 2005, 1:50pm UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843/5 "2005-04-05T13:50:06Z")

</div>

> [@DaveLaw](#):
>
> We need to do this using https & sign it with an X509 certificate.  
> What are the options?

The XML RPC Server supports https but does not support certificates. So you need something in between the XML RPC Server and your Webservice. You can write an own web service for signing, or you can look if you find something already available or you can use EntireX Mediator.

---

<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, 2:39pm UTC](https://techcommunity.softwareag.com/t/calling-a-web-service-from-natural/58843/6 "2021-04-02T14:39:30Z")

</div>


