Calling REST API from an Android App

Originally posted on http://www.soatothecloud.com/2012/04/calling-rest-api-from-android-app-then.html, on Tuesday April 24th 2012, by Mark O’Neill, CTO at Vordel

A popular usage of the Vordel Gateway is to take a legacy SOAP service, and deploy it as a REST API for consumption by mobile apps. Mobile apps can consume REST APIs, but you are unlikely to call a SOAP service from a mobile app. REST-to-SOAP conversion is very simple to achieve using a Gateway, because the Gateway can expose REST APIs which map to SOAP services, dynamically creating the SOAP request based on the REST API call.

In the video below, you can see an Android app running in the Android emulator, which is calling a REST API on the Vordel Gateway. At the Gateway, you can see the REST API request is being dynamically converted to SOAP. All without writing any code :-)

 

When you zoom in, you can see the steps which convert the REST API to the legacy SOAP service call:

Calling REST API from an Android App