Develop a Spring client for Android to a JAX-RS web service

Learn to create a Spring Android client

From the developerWorks archives

Deepak Vohra

Date archived: December 6, 2016 | First published: August 12, 2011

The Representational State Transfer (REST) software architecture is based on transferring representation of resources. A RESTful web service is a web service based on REST and the HTTP protocol and is made available as a URI path. The web service consists of methods producing messages of various media types such as XML, HTML, JSON, and text. The web service methods respond to HTTP methods GET, PUT, POST, and DELETE. The Java API for RESTful web services (JAX-RS) is defined in JSR 311, and Jersey is a reference implementation for JAX-RS.

Spring, a platform to run Java enterprise applications, provides several benefits, including increased productivity and runtime performance. Spring Android is an extension of the Spring framework that simplifies the development of Android applications. The main features of Spring Android are a REST client for Android and Auth support for accessing secure APIs.

In this article, access a RESTful web service with the Spring Android REST client.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML, Open source, Web development
ArticleID=751860
ArticleTitle=Develop a Spring client for Android to a JAX-RS web service
publish-date=08122011