Migrate OData Applications to REST API

Migrate messaging-based (sometimes called iMO-based) OData applications to REST API-based, to take advantage of REST services capabilities. This enables you to run mobile applications on-premise and in the cloud.

Prerequisites
  • Import the new REST client libraries from the OData SDK into your Android or iOS development environment.
  • Arrange access to a test environment for both on-premise and cloud testing.
Task
  1. In your development environment, modify the messaging-based (sometimes called iMO) application logic to use REST-based services.
    Some areas you may need to address:
    • Registration
    • Settings exchange
    • Request response
    • End-to-end tracing
    • Native push notifications
    • For the cloud, the application may support CAPTCHA if required.
    For supporting information:
    • For information related to migrating OData applications to REST API, see Guidelines for On Premise and Cloud Applications.
    • For API information for all of the above, which are different for the REST SDK, see Developer Guide: OData SDK:
      • Development Task Flow Using REST SDK (HTTP Channel) – iOS section
      • Development Task Flow Using REST SDK (HTTP Channel) – Android section
    • For new API information, see OData SDK API Changes in Version 2.2. Previous changes in 2.2 SP02 included Afaria, Data Vault, refactored ODP class names, and introduction of ODP Exception.

  2. Recompile the application.
  3. Test the application in a device simulator or emulator, and in the test environment (both on-premise and cloud configurations). Make modifications as needed.
    For useful information for testing:
    • iOS applications
      • Developer Guide: OData SDK (iOS section):
        • Testing Applications
        • Deploying Applications to Devices
      • Tutorial: iOS OData Application Development with REST Services, Deploying the Device Application on iPhone Simulator
    • Android applications
      • Developer Guide: OData SDK (Android section), Deploying Applications to Devices
      • Tutorial: Android OData Application Development with REST Services, Running your Android OData Application
  4. Deploy the application to the production environment.