Cloud Integration – How to Connect to an On-Premise REST/HTTP application via Cloud Connector
This short article aims at showing how to quickly test the connection from Cloud Integration (HCI) to a RESTful(HTTP) on-premise application. This is to provide a practical example to easily get the idea laying behind the Cloud To On-Premise configuration.
In this example, SCC is installed on my local machine and the on-premise application is a SoapUI mock http service.
|Real case||Test case (described below)|
|SCC installed on your server in DMZ (for details see this web page)||SCC installed on your local machine|
|On-Premise RESTful application providing WS||SoapUI installed on your local machine|
Configure On-Premise App (here a SoapUI mock service)
|Create an empty project|
|Right click on the new project, New Rest Mock Service|
|Right click on the service, Add new mock action|
|Right click on the action, New MockResponse: just add what you want your application to return|
|Double click on the Project, start the service|
Go to Cloud To On-Premise section.
|Add a new Mapping Virtual To Internal System|
|Insert the internal host: remember we’re using our local machine for this test so we use the port defined in SoapUI|
|Insert a name for the virtual host which will be used in HCI Request/Reply channel configuration|
|Use Virtual Host|
|Recap and Finish|
|Check the availability|
|Add resources (right below your virtual host), Save|
The iFlow is called via http and it’s very simple:
- Gets called by a 3rd party application (below a web browser)
- Calls the on-premise application
- Maps the response back to the caller
In the HTTP connection, indicate the virtual host and set Proxy Type ‘On-Premise’.
Call the iFlow url with your browser: this will call HCI which will connect to the on-premise app via SCC. Check the result.
In SoapUI check the call log.
Thanks for reading.