250
Views
0
Comments
Connecting localhost server with Outsystems

You may have come across a scenario where you need to send data from a server running on your system's localhost to Outsystems. Consuming API on Outsystem is a futile approach since entering localhost URL doesn't works. This is because Outsystem service studio runs on cloud and hence doesn't have access to your system's localhost.

The solution I found is creating a proxy URL to send data to your localhost. Ngrok is suitable tool for this purpose. It will create a HTTPs endpoint that will direct any HTTP request to your localhost. Then use this proxy URL to consume API in Outsystem.

Here are the steps:

1. start your localhost server

2. Create a porxy URL. In a powershell window enter ngrok http your_port_number

3. In Outsystems service studio consume REST API and enter the proxy URL. Choose HTTP method as required.


Test the API and it should work.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.