Tutorial: Creating a JAX-RS web service
The following tutorial will walk you through creating a JAX-RS application. Any JAX-RS v1.0 implementation can be used, but for this tutorial we will be using the IBM® implementation that is available when you install WebSphere® Application Server Version 7.0 or later.
Learning objectives
- Integrate a JAX-RS implementation into the workbench, and target projects to use this implementation.
- Create a bottom-up web service which uses JAX-RS, using quick fixes to speed up the process.
Time required
This tutorial requires 30 minutes to complete.Prerequisites
Ensure that you have one of the following prerequisites:- WebSphere Application Server Version 7.0 with the Feature Pack for Web 2.0 and Mobile
- WebSphere Application Server Version 8.0
- WebSphere Application Server Version 8.5
If you do not want to complete the tutorial manually, you can download the sample through HTTP or FTP, and save the compressed file to a directory on your workstation. Note that this sample code is targeted to WebSphere Application Server v8 and cannot be deployed to WebSphere Application Server v7. You can then proceed to the test section of Lesson 2.
If you want to watch a JAX-RS web service being created, a demonstration is available at the following URL: Creating and testing JAX-RS (RESTful) web services
When you are ready, begin Creating a server and web project.