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: Use Payara Server rather than GlassFish, info in Section 1
Update: Apache Tomcat, SSL, Authorization and Authentication in Section 8
Update: REST/MySQL/Apache Server Example in Section 9
Update: JavaFX to REST Example in Section 10
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:
Not for you? No problem.
30 day money back guarantee.
Learn on the go.
Desktop, iOS and Android.
Certificate of completion.
|Section 1: Introduction and Course Information|
How to make the most of this coursePreview
Install the Payara application server, a GlassFish clone, but better maintained.
|Section 2: Getting Started|
Show where 'web services' and REST fit into Java EE.
Cover web service and REST concepts.
Download the JAX-RS and JSONP libraries and add them to 'user libraries' in Eclipse.
|Section 3: Write a REST Client|
Setup a REST client template.
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.
Alternative URLs to Use
Call an exchange rate service.
Parse the JSON returned from the exchange rate service.
Call a Holiday XML Service
Parse the Holiday XML File
Activity - Practice Writing a Client
|Section 4: Write a REST Service|
Decide what the URLs and data formats will be.
GlassFish Error - Please Read
Annotate and deploy the service.
Setup cURL and deploy the project.
Test the REST service by sending get/put/post/delete commands using cURL. Send/receive data as XML or JSON.
Write a client and JUnit tests:
00:10 - Start
Activity - Practice Writing a Service
|Section 5: Conclusion|
Summary of main topics.
|Section 6: Bonus I - Using SSL/TLS|
Securing the Server
Securing the Client
|Section 7: Bonus II - Authentication & Authorization|
Authentication & Authorization Concepts
00:25 - GlassFish Admin Console
|Section 8: Combining SSL & Authentication|
SSL & Authentication
|Section 9: Bonus III - Apache Tomcat and REST|
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
|Section 10: Bonus IV - REST Example using MySQL and Apache|
Download and Install Apache Tomcat
Download and Install MySQL
Setup and Run the Project
|Section 11: Bonus V - JavaFX to REST Example|
REST Client Overview
Setting up Eclipse
JavaFX Client Example
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.