cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

I followed this blog post to access an OData service with the Cloud Platform SDK. I Used a custom OData Service instead of the standard Businesspartner OData service and a R3 ERP on-Premise backend system instead of S/4 HANA.

If I deploy the app to my Cloud Foundry subaccount it is working fine and my OData service is executed via Cloud Connector and destination service on my on-premise backend.

If I try to execute the same application on the local tomee server the on-premise backend system is not reached.

My destination on my subaccount looks like this:

If I pass all the information (URL,User,Password) to the local destination it is not working...

The same erroppr apperas on executing the integration tests.

What must I do to access my on-premise backlend from localhost?

Best regards,

Chris

View Entire Topic
christoffer_fuss
Participant
0 Likes

Hi Matthias,

thnaks for helping 🙂

I am using the newest version 3.8.0. of the SDK.

I changed the enviroment variable to this:

set destinations=[{name: "saperp", url: "http://dt1.https:11", username: "USER", password: "PASSWORD","proxyType": "on-premise"}]

It is still not working that way. Or must I pass the "proxyType" in the properties array?
The proxy server is specified in the Cloud Connector and I thought this information is taken.
Should I pass the proxy information again in the enviorment varaible?

The code for the destination was copied from the blog:

 private final ErpHttpDestination destination = DestinationAccessor.getDestination("saperp").asHttp().decorate(DefaultErpHttpDestination::new);

Best Regards,

Chris

matthiaskuhr
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Chris,

I think you might need to not use quotes for the proxyType. Could you check that? If that dosen't do the trick we'll need to debug into the application and see which values are stored in the destination once it's loaded and what the exact error + stack trace is.

Best, Matthias

christoffer_fuss
Participant
0 Likes

Hi Matthias,

I tried it again without the quotes and it is still not working. Have you seen the answer from Marco? He is saying that this scenario is not possible. Are you sure that your way should work?

Best regards,

Chris

matthiaskuhr
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Chris,

yes Marco is right, I wasn't aware of the Cloud Connector.