Northwind OData test service
Using SAP Cloud Platform Destinations
The sample application uses the SAP Cloud Platform (HCP) destinations to access the sample data.
We do this using the
neo-app.json file. This is the Application Descriptor File, and can be used to configure your application running inside HCP.
Why doesn’t the sample application just connect directly to the OData test service?
Normally, you can do this. In fact, it’s the recommended method. But we are working around a bug.
There are two things happening here. First, all the major web browsers prevent you from loading insecure data in to a secure page. That is called Mixed Content. If the original web page is secure, the browser will demand all data is secure as well. So, the browser automatically uses HTTPS connections for all data.
Second, when the browser attempts to get data from https://services.odata.org/, it runs in to another problem. The OData test site has an invalid SSL certificate. When the browser attempts to get the data, using HTTPS, the invalid certificate generates an error.
We work around this by having SAP Cloud Platform talk to http://services.odata.org/ directly. This avoids the HTTPS connection, and works around the bug.