Skip to Content

Introduction to Creating OData Service in HANA Cloud Integration

The OData Provisioning feature in HCI is designed for today’s increasing demand to consume data from various data sources in a simple and standard way. This feature converts non-OData protocols to OData protocols.

 

Using this feature, applications like Fiori and HANA Cloud Platform Mobile Services will be able to consume data from different data sources such as SOAP and REST as OData services.

 

2016-04-13_12-40-55 (2).jpg

List of Options

  1. Create OData service based on an existing SOAP Service.
    • You can import a SOAP WSDL file to the HCI wizard to create OData model or you could create an OData edmx file from scratch and define SOAP as backend.   /wp-content/uploads/2016/04/2016_04_13_14_11_07_928777.jpg
    • That means, your applications can consume data from a SOAP data source as OData service. (Note that composite and multipart SOAP services are not supported.)
    • You can see it in action here.
  2. Create OData service based on an existing OData service.
    • This feature is useful when you want to modify and existing OData service. Ex. If Products is an OData collection with 100 properties, you can reduce it to 10 properties in the OData service you are exposing via HCI.
    • You can import the edmx (metadata) file to do it. /wp-content/uploads/2016/04/2016_04_13_14_18_46_928809.jpg
  3. Create OData service for REST data source.
    • In the case of REST as the data source, you need to create the edmx file from scratch using OData model editor. i.e OData model cannot be auto-generated based on an existing REST service. /wp-content/uploads/2016/04/2016_04_13_14_21_44_928815.jpg
  4. Service Mash-up.
    • You can create OData service which connects to multiple, different data sources. Hence, a single OData URL can give data from heterogeneous backend systems.
    • After creating OData models you can define data sources as given below./wp-content/uploads/2016/04/2016_04_13_13_36_24_928816.jpg
    • Currently, you can mash up 3 data sources: SOAP, REST and OData.

 

An End to End Demo

This demo shows, how to create OData service from an existing SOAP service and consume it in a mobile app.

 

Steps:

1. How to create OData service from an existing SOAP service using HCI.

2. Then, configure the mobile application in HCPMS.

3. Finally, creating the mobile app using Web IDE.

 

Note: This video was created a couple of months back for my DKOM presentation, so you might find some small UI changes, you can notice that the OData end point URL was created automatically in HCI, but it is not available now. Today you are required to create end point URL manually as mentioned here under section endpoints.

 

Find the documentation here.

If you want to know how to convert SOAP to OData using HCI read this blog.

To know the use case of this feature with HCPMS read this blog.

 

 

Regards, Midhun

SAP Technology RIG

18 Comments
You must be Logged on to comment or reply to a post.