Register Non-OData Resources in the Catalog
1 Introduction
The Catalog collects metadata from exposed services and currently supports all OData XML resources. If you want to connect something other than OData, you can do so by wrapping it in OData and then registering the data source contract file in the Catalog. Afterwards, you can make it available for being consumed in Mendix Studio Pro. Currently there are two ways to wrap data in OData:
2 Expose OData via a Mendix App
To expose OData via a Mendix app, replicate and save your persistent entity data in a module. In this module, expose the persistent entities as published OData services. This will allow read-only access to the external entity data within the Mendix Landscape.
For more information, see Published OData Services and Building Connectors.
3 Expose OData via a Service Wrapper
As a custom solution, you can expose OData via a service wrapper. If you have a web server and a custom application with a non-OData data source, it is possible to build a service wrapper that converts the app data to OData. It is possible to create an OData API wrapper on top of different types of data sources like REST API and Async API. For example, you can use the Apache Olingo library to create an OData service.
There are certain limitations on consumed OData services. For more information on limitations, see the OData Services and External Entities section in Consumed OData Services.
The diagram below represents how an OData API wrapper can be used to connect a custom app data source to a Mendix Studio Pro app:
Once the OData service is available, find the generated $metadata file for your data, and use that to register your service in the Catalog via the connector on the home page. For more information on setting up the connection, see Published OData Services.
3.1 Examples of Exposing OData with a Service Wrapper
You can find the following examples of how to write an OData service in .NET:
Feedback
Was this page helpful?
Glad to hear it! Thank you for your response.
Sorry to hear that. Please tell us how we can improve.