REST Web Services using Java EE
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.
Find online courses made by experts from around the world.
Take your courses with you and learn anywhere, anytime.
Learn and practice real-world skills and achieve your goals.
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:
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:
Please see the free videos in my 'Java EE - The Basics' course for help with installing the above.
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
How to make the most of this coursePreview
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
Downloading JAX-RS (Jersey) & JSONP
|Section 2: Writing a RESTful Client|
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
Call a JSON Exchange Rate Service
Parse the JSON Exchange Rate File
Call a Holiday XML Service
Parse the Holiday XML File
Activity - Practice Writing a Client
|Section 3: Write a REST Service|
GlassFish Error - Please Read
Annotate the Food REST Service Class
Test with cURL
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
|Section 4: Conclusion|
|Section 5: Appendix I - Using SSL/TLS|
Securing the Server
Securing the Client
|Section 6: Appendix II - Authentication & Authorization|
Server Authentication Concepts
00:17 GlassFish Admin Console
02:32 GlassFish Security Realms
10:51 ApplicationConfig class
13:06 FoodRestService class
|Section 7: Appendix III - JavaFX to REST Example|
REST Client Overview
Setting up Eclipse
JavaFX Client Example
|Section 8: Appendix IV - REST Example using MySQL|
Download and Install Apache Tomcat
Download and Install MySQL
Setup and Run the Project
|Section 9: Appendix V - Apache Tomcat|
CXF Eclipse Installation
Create an Eclipse CXF REST Project I
Create an Eclipse CXF REST Project II
SSL - Server
SSL - CXF Application
SSL - REST Client
Eclipse TCP/IP Monitor
Authentication and Authorization
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.