Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 20, 2016 at 04:43 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 18, 2016 at 07:36 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.