cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing On-Premise OData services from HCP(Factory account) JAVA Application(OLINGO framework)

0 Kudos

Hello everyone,

I am working on JAVA Application which uses OLINGO framework to communicate to ODATA services available in On-Premise ABAP System.

I have maintained Cloud Connector entry for On-Premise system and also maintained Destination in Factory account(hana.ondemand.com). In order to communicate with ODATA Services I am using OLINGO framework in Java Application.

In JAVA application I read the destinations URL/hostname maintained and tries to pass that URL to OLINGO framework to further communicate to Backend system (I am setting proxy to connection object).

In this case I am aware that all the communications from JAVA has to go through Cloud Connector rather than directly making an connection to On-Premise system using URL.

In OLINGO framework we do the following steps

1) We read edm (metadata)

2) readEntry using EntitySet name, edm, url which will return ODataEntry

3) From ODataEntry we read the properties.

In all the connection objects to On-Premise ODATA calls I adding proxy type to it and I get below mentioned error.

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 405 Method Not Allowed" What makes sure all the calls go through HANA Cloud Connector ?

How do I go about this any pointers highly appreciated.

Regards Santhosh Reddy M

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi All, Any communications which interacts with OnPremise systems, they have to configured in HCP Accounts SAP HANA Cloud Connector. An entry in Access Control tab has to be added post which any call from HCP (Factory account) should have a proxy set and the URL should be of http protocol rather than https. HTTPS which are accessed in browsers can be accessed via HTTP protocol which in turn goes to Cloud Connector which then passes to OnPremise system. So convert all https URL request to http URLs and it will work if Cloud Connector is properly configured. Regards Santhosh Reddy M

Answers (1)

Answers (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Santosh,

you can turn on payload trace for the account in order to see whether the targeted ABAP system is sending some more information and not only the short HTTP response.

Best regards,

Markus