Skip to Content
Technical Articles
Author's profile photo James Taylor

Cloud Integration – How to Connect to an On-Premise REST/HTTP application via Cloud Connector

Introduction

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.

 

Prerequisites

Real case Test case (described below)
SCC installed on your server/virtual machine (for details see this web page) SCC installed on your local machine
On-Premise RESTful application providing WS SoapUI installed on your local machine

Configuration steps

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

 

Configure SCC

Go to Cloud To On-Premise section.

Add a new Mapping Virtual To Internal System
Non-SAP System
HTTP protocol
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
No authentication
Use Virtual Host
Recap and Finish
Check the availability
Add resources (right below your virtual host), Save
Result

 

Configure HCI

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’.

 

Test

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.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ilinca Andrioaie
      Ilinca Andrioaie

      Hello,

       

      Really grateful for this blog post, but unfortunately I was not able to test it succesfully.

      Please let me know if you can help with this deployment error :

      [CONTENT][CONTENT_DEPLOY][InstanceError] : {"message":"ERROR","childMessageInstances":[{"message":"EXCEPTION","parameters":["org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instantiating bean clientConfig_OnPremise_HTTP of class null"],"childMessageInstances":[{"message":"CAUSE","parameters":["java.lang.IllegalStateException: On-Premise proxy details not available"]}]}]}

       

      Thank you.

      Author's profile photo James Taylor
      James Taylor
      Blog Post Author

      Hello Ilinca Andrioaie,

      are you trying to deploy the iFlow from eclipse? Are you using an updated version? Same error if you try it from the Design section (via browser)?

      Regards.

      JT

      Author's profile photo Ilinca Andrioaie
      Ilinca Andrioaie

      Hi,

       

      I am deploying from the Design section in the CPI Web UI..

      There might be the case in which there are limitations in the CF environment for trial accounts, so connecting through Cloud Connector might not be fully supported.

       

      Kind Regards,

      Ilinca A.