Before you start
This tutorial is for developers who build applications that use database driven web services with persistence framework like Hibernate. By using web services, your application can publish its function or message to the rest of the world. Web services use XML to code and to decode data, and SOAP to transport it (using open protocols). Representational State Transfer (REST) has gained widespread acceptance across the Web as a simpler alternative to SOAP. It s a key design idiom that embraces a stateless client-server architecture in which the web services are viewed as resources and can be identified by their URLs.
This Tutorial will describes the way of developing web service (JAX-WS and REST). Web services can be implemented using different application protocols like SOAP, XML, JSON, Restful HTTP, and support various transport protocols like HTTP or JMS (Java Message Service). This tutorial will help you in developing a Database Driven Information Retrieval Web service with Hibernate, followed by Hello User Restful web service which is deployed in the Google Cloud (GAE). Finally consuming the developed web services with mobile clients (J2ME and Android).
In this tutorial, learn how to:
- Develop and deploy a JAX-WS Web Service, which operates on DB2 database using Hibernate as an ORM framework.
- Develop a simple Restful webservice and deploy it in Cloud (GAE).
- Invoke both the above Web Services using an Android Client and a J2ME client.
This tutorial assumes familiarity with some basic concepts of the Eclipse IDE, and basic understanding of Web Service architecture, see Resources for additional information.