REST Web Services using Java EE

A guide to understanding, accessing, and writing a RESTful web service.
4.3 (112 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
1,285 students enrolled
$20
Take This Course
  • Lectures 50
  • Contents Video: 4.5 hours
    Other: 7 mins
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 4/2015 English

Course Description

Update:  REST/MySQL Example in Section 8

Update: JavaFX to REST Example in Section 7

Update: Apache Tomcat, Including SSL, Authorization, and Authentication, Appendix IV

This course walks the student through general web service concepts, then focuses on RESTful web services. We will write both a service and clients, process JSON and XML, and test using cURL.

This course covers the following topics:

  • Web Service Concepts
  • JAX-RS
  • Calling a Web Service
  • Writing a Web Service
  • Processing XML/JSON
  • Using the xjc Schema Compiler
  • Using cURL
  • SSL
  • Authentication & Authorization
  • JavaFX to REST Example
  • Apache Tomcat and CXF

The application server initially used is GlassFish since GF is the reference implementation for Java EE.  Section 8 covers the above topics using Apache Tomcat and CXF as the application server.

The environment used for this course includes:

  • Java SE 8
  • Java EE 7
  • Eclipse IDE
  • GlassFish
  • Apache Tomcat

Please see the free videos in my 'Java EE - The Basics' course for help with installing the above.

What are the requirements?

  • Fair knowledge of Java
  • Eclipse IDE
  • Java SE 8
  • Java EE 7
  • Knowledge of XML/JSON

What am I going to get from this course?

  • Understand Web Service Concepts
  • Write a REST Client in Java
  • Write a RESTful Web Service in Java
  • Use SSL/TLS
  • Use Authentication & Authorization

What is the target audience?

  • Professionals
  • Students
  • Developers with a Java background

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

How to make the most of this course
Preview
Article
09:52

00:09 Introduction

02:09 Using the Eclipse Marketplace

03:49 Using Eclipse's 'Install New Software' feature

06:00 What if it still didn't install?

07:00 Add a JDK Runtime

08:10 Install GlassFish

Section 1: Getting Started
Web Services and Java EE
Article
REST Concepts
15:20
Downloading JAX-RS (Jersey) & JSONP
04:07
Section 2: Writing a RESTful Client
06:29

NOTE: When setting up a project, be sure to add all the jar files that come in the JAX-RS zip file. Currently, the zip file has three directories. Go into each directory and add the jars. This is shown starting at 4:50 of the video.

Alternative URLs to Use
Article
Call a JSON Exchange Rate Service
06:15
Parse the JSON Exchange Rate File
05:06
Call a Holiday XML Service
06:44
Parse the Holiday XML File
08:18
Activity - Practice Writing a Client
00:59
Resources
Article
Section 3: Write a REST Service
Steps
05:54
GlassFish Error - Please Read
Article
15:50
Sections:
  • 00:25 Create a Dynamic Web Project
  • 01:06 Configure the Project Facets
  • 02:01 Write the Food class
  • 04:05 Write the FoodList class
  • 05:42 Write the FoodManager class
  • 07:56 Write the FoodRestService class
  • 13:04 Write the ApplicationConfig class
Annotate the Food REST Service Class
05:36
Test with cURL
08:23
19:35

00:10 Start

04:13 Write the Constructor

06:51 'getAll' Method

08:55 'get' Method

11:28 'post' Method

14:57 'put' Method

17:33 'delete' Method

Activity - Practice Writing a Service
01:38
Section 4: Conclusion
Summary
01:40
Section 5: Appendix I - Using SSL/TLS
Securing the Server
Article
Securing the Client
Article
Resources
Article
Section 6: Appendix II - Authentication & Authorization
Server Authentication Concepts
06:23
17:26

Timeline

00:17 GlassFish Admin Console

02:32 GlassFish Security Realms

04:22 glassfish-web.xml

06:42 web.xml

10:51 ApplicationConfig class

13:06 FoodRestService class

Client-Side Authentication
04:01
Section 7: Appendix III - JavaFX to REST Example
Introduction
08:51
REST Client Overview
06:31
Setting up Eclipse
07:05
Using SceneBuilder
10:33
Dialog Example
06:22
JavaFX Client Example
10:06
Resources
Article
Section 8: Appendix IV - REST Example using MySQL
Introduction
07:37
Download and Install Apache Tomcat
04:23
Download and Install MySQL
06:47
Setup and Run the Project
05:17
Section 9: Appendix V - Apache Tomcat
Introduction
Article
Installation
04:11
Eclipse Installation
01:57
CXF Installation
02:59
CXF Eclipse Installation
02:02
Create an Eclipse CXF REST Project I
02:08
Create an Eclipse CXF REST Project II
03:53
SSL - Server
11:03
SSL - CXF Application
04:29
SSL - REST Client
04:54
Eclipse TCP/IP Monitor
08:39
Authentication and Authorization
08:45

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Taylor Corey, Software Engineer & Mentor

I have 25+ years experience in software development. Seven years with embedded systems and 18 years in the object oriented industry. Companies include banking, finance, telecom, and a product vendor. Jobs ranged from gathering requirements and turning them into working software, to mentoring others learning OO programming and design. I currently reside in the southeast United States near Research Triangle Park, NC.

Ready to start learning?
Take This Course