In the Orchestrator Studio, you can create a Connector Service Request to Call external REST Service.

 

In this blog, we will be using a free REST API for Currency Conversion from https://free.currencyconverterapi.com

 

Sample Input -

--------------------

v6/Convert API takes input as FromCurreny_ToCurency

 

https://free.currencyconverterapi.com/api/v6/convert?q=USD_INR

 

Sample Output -

-----------------------

{

   "query":{

      "count":1

   },

   "results":{

      "USD_INR":{

         "id":"USD_INR",

         "val":70.544948,

         "to":"INR",

         "fr":"USD"

      }

   }

}

 

 

Using Orchestrator Studio, we will be calling v6/convert REST API and pass parameters at the run-time to get the output.

 

Step# 1 - Create Connector

 

Login into Orchestrator Studio and click on Tools option.

 

1.png

 

Click on Connectors -

 

2.png

 

here we need to fine Connection properties for external REST system and save it -

 

Type - External REST

Endpoint - https://free.currencyconverterapi.com/api/v6/convert

3.png

Note - This API doesn't require authorization. if required Authorization can be defined under the Security tab.

Also, if you are using a proxy server then it can be defined under the Proxy tab.

 

4.png

Step#3-  Creating Connector Service.

 

Click on Service Request and select Connector -

 

 

Here define the connector details and select the connection name which we have defined in previous steps.

Also, define the parameter to the REST API.

Example - https://free.currencyconverterapi.com/api/v6/convert?q=USD_PHP here q is the parameter for this API

5.png

 

You can also quickly test this service using the Test button.

 

6.png

 

Test result Output -

7.png

 

Step 3# Creating Orchestration and map input variable.

 

Now, we will map the created Connector Service to Orchestration and map variables.

 

8.png

 

Click on the drop-down and select the previously defined Connector Service.

 

9.png

 

10.png

 

Notice the Variable ${From_To} is displayed as an input to Connector Service Request -

 

11.png

 

Now, define Orchestration Input and map to the variable from Connector Service Request.

 

12.png

 

Testing -

 

Login into Orchestrator Client and select your Orchestration from the drop-down list.

Orchestration input variable will be displayed under INPUTS.

 

Example - Enter the value as usd_inr for converting currency from USA to India.

 

Reference -

 

check https://free.currencyconverterapi.com/ for the available list of countries and currency.

JD Edwards EnterpriseOne Tools Orchestrator Guide