Java Web Services

Course Features

Course Details

DQL-The Select Statement1
Identifying Table and Column Names
Components of a Simple SELECT
Examples of Simple SELECT statements
Creating Character Values in the SELECT clause
Computing Numeric Values in the SELECT clause

What Will I Learn?
Understand why web services are so popular
Understand the different types of WS Design
Use Apache CXF the Popular WS Stack
Implement Contract First and Code First Web Services
Develop a Web Service Consumer
Secure Web Services using the WS-Security Standard
Implement SOAP Attachments
Master the REST web service concepts and Implementation
Create different types of REST Clients
Secure Rest Services
Handle Errors In REST
Develop Asynchronous Web Services
Jersey REST Quick Start
Spring MVC REST Quick Start
Learn all the important web services interview Questions and Answers
All in short simple and easy steps
Use REST Attachments

Eclipse Kepler(or Higher) Java EE IDE for Web Developers.
Apache Tomcat
Java Knowledge

Who is the target audience?
Java Developers
JEE Developers
Students with Java background

Course Outline: 1.Software Setup and Troubleshooting
Installing Java,Eclipse and Tomcat
Configuring Tomcat In Eclipse
Testing Tools Setup
Downloading Projects from Lecture Contents
Importing and Running Projects
2.Web Services - The Big Picture
Course Introduction
Web Services Introduction
Web Services Overview
SOA and Web Services
Web Services and SOA
Section Summary
3.XML and XML Schema Definition Crash Course
What is XML?
Why XML?
When to use XML?
What is XSD?
When to use XSD?
XML Schema Definition
XML Namespaces
XML Schema Hands On Usecase
XML Schema Hands On
Creating Simple Types
XML Schema Simple and Complex Types
Controlling the Order Of Elements
Controlling the number of Elements
XML Schema Element Occurrences and Order
Meaning of the elementFormDefault attribute
Defining Attributes
Section Summary
4.SOAP Web Services Concepts
SOAP Web Services Overview
SOAP Web Services Advantages and Disadvantages
When to use SOAP Web Services ?
WSDL File Explained
WSDL Binding Styles
Section Summary
5.SOAP Web Services Design and Implementation
SOAP Web Services Design Approaches
Section Summary
JAXB Introduction
Generating Java Classes From XML Schema
Marshalling and Unmarshalling
JAXWS Summary
JAXB Summary
7.Apache CXF
Apache CXF Overview
Creating a CXF Web Service Project From Scratch
CXF Maven Web Application Project Structure and Components
Section Summary
8.Developing Top Down Web Services
WSDL Creation
Generating the Stubs
Implementing the Web Service Endpoint
Publishing the Web Service
WS Provider Application Flow
WSDL First Web Service Assignment
Section Summary
9.Java SOAP Client
Project Setup
Generate the stubs
Create the Java Client
Flow and the Service Provider Mechanism
Develop a Web Service Consumer
Section Summary
10.Developing Bottom Up Web Services
Payment Gateway Legacy Application Use Case
The Project Setup
Annotating the Beans
Step 2 - Annotating the Endpoint
Step 3 - Publishing the Endpoint
Step 4 - Accessing the WSDL file
Create a Code First Web Service
Testing Using SoapUI and Application Flow
SOAPUI Assignment
Section Summary
11.WS Standards
WS Standards Overview
User Name Token Profile Authentication
Exchanging Files using MTOM
Section Summary
12.User Name Token Profile Client
Project Setup
Code the client
CXF Low Level Client API
Configure Properties
Create a Callback Handler
UT in Action
13.JAX-WS Handlers
Two types of JAX-WS handlers
JAX-WS Handlers
Use Case and Project
4 Steps
Create the Handler Class
Implement the handleMessage method
Extract the Header
Configure the Handler
The Handler Flow
getHeaders Explained
Configuring the JAX-WS Way
14.SOAP Faults
Project Configuration
Creating a SOAP Fault
Create and throw a custom exception
15.REST Web Services Concepts
REST Overview
WHY RESTFul ? - The Advantages
WHY RESTFul ? When to use RESTFul Web Services?
Section Summary
16.RESTFul Design and Implementation
REST Design
Project Configuration
Maven Dependencies
STEPS for Implementing REST
Create Method
READ Method
Annotate the Resources
Annotate the beans
Publish the Endpoint
Deploy and Run
Testing Using Chrome REST Plugin
REST Web Service Implementation
17.Configuring JSON Support
Configuring JSON Support
REST Java Script JQuery Client
18.REST Sub Resource Mapping
Sub Resource Project Configuration
Sub Resource Method Implementation
Annotate the resource
Test Sub Resource Mapping
REST Design and Implementation Summary
19.REST Error Handling
Rest Standard Error Handling
REST Exception Handling
Section Summary
20.JAX-RS Cient API - Creating Java REST Clients
Using the GET Request
Using a PUT Request
Using a POST Request
Cleaning UP
Section Summary
21.JAX-RS Injection
Project Context and Configuration
Injecting HTTP Query Parameters
Injecting HTML Form Parameters
Injecting a HTTP Header
Injecting Multiple HTTP Headers
Injecting Cookies
Section Summary
22.Asynchronous REST
Creating a Asynchronous REST Provider
Async Provider
Publishing the Service
Creating a Asynchronous Client
Async Client
Async Provider Error Handling
Async Client Error Handling
Using the Client Callbacks
Futures vs Callbacks
Section Summary
23.Securing REST Web Services
HTTP Basic Authentication
24.REST and Spring Security
Project Setup
Implementing REST Resources
Publishing the Endpoint
Spring Security Introduction
Spring Security
Add the filter to Web.xml
Configure Spring Security
Annotate the Resources
Testing Security
Creating a Exception Mapper
Summary and Flow
Section Summary
25.OAuth Concepts
What is OAuth
What is OAuth
Why , When and When Not to Use OAuth
OAuth Workflow - How
OAuth Workflow - How
OAuth Google Play Ground
Section Summary
26.REST Attachments
Method and URI Design
Project Configuration
Implement the Upload Method
Upload a Attachment
Implement the download method
Download a Attachment
JAX-RS Upload Client
27.Jersey Quick Start
Project Configuration
Creating a REST Resource
Creating a REST Client
28.REST Using Spring MVC Quick Start
Spring MVC Flow
Project Configuration
Hello Spring REST
Returning JSON Response
29.Interview Help and Wrap Up
Final QUIZ
Interview Questions (Updated Frequently)
Slides used in the course
Please leave a rating
My Other Courses and Discounts
JSON Introduction
JSON Hands On
JSON Parsing
31.WSDL Creation
Create the WSDL
Define Schema Types
Get Orders Request and Response
Create Order Request and Response
The Four Elements
Define Messages
Define Operations
Define Binding
Define Service
Resolve Errors
32.Database CRUD using REST
Project and pom.xml
Create the data access layer
Implement Create Update and Delete Methods
Implement the find method
Wire the DAO Beans
Create the REST Interface
Annotate the beans
Implement the REST Service
Implement the READ Method
Wire the beans
Deploy the application
Test Read and Create
Test Update and Delete
This course does not have any sections.

More Courses by this Instructor