Module 1 – Overview of
Java Web Services
1. The Web Services Architecture
Evolution
of Web Services
Motivation for Web Services
HTTP and XML
Interoperability Stacks
The Wire Stack
Simple Object Access Protocol (SOAP)
The Description Stack
Web Service Description Language (WSDL)
The Discovery Stack
Universal Description, Discovery and Integration (UDDI)
Hosting Web Services: Scenarios
Demonstration: A Running Web Service and Client
2. The
Java Web Services Architecture
Java and Web Services
Web Services and the J2EE
The Java API for XML Processing (JAXP)
The SOAP With Attachments API for Java (SAAJ)
The Java API for XML Messaging (JAXM)
Demonstration: A SOAP-Based Web Service Using JAXM
and SAAJ
The Java API for XML-Based RPC (JAX-RPC)
Demonstration: A WSDL-Enabled Web Service Using
JAX-RPC
WSDL-to-Java vs. Java-to-WSDL
The Java API for XML Registries (JAXR)
The Registry Server
3. Java Web Services Case Study
Multi-Tier
Architecture
Moving to Web Services
Mapping Domain Classes Using JAX-RPC
Demonstration: Creating the SOAP Interface and
Generating WSDL
Demonstration: Building the Client with JAX-RPC
Stubs
The UDDI Information Model
White, Yellow and Green Pages
Demonstration: UDDI Publishing with JAXR
UDDI as a Web Service
Demonstration: Discovering a Web Service via
UDDI
Module 2 – The Java APIs
for SOAP Messaging
1. The Simple Object Access Protocol
(SOAP)
SOAP Messaging Model
SOAP Namespaces
SOAP over HTTP
The SOAP Envelope
The Message Header
The Message Body
SOAP Faults
Attachments
XML Schema
Validating Message Content
2. The Java APIs for SOAP Messaging
(SAAJ)
The SAAJ Object Model
Parsing a SOAP Message
Reading Message Content
Working with Namespaces
Creating a Message
Setting Message Content
3. The Java API for XML Messaging
(JAXM)
Messaging Scenarios
Point-to-Point Messaging
JAXM Message Providers
The JAXM Messaging Model
Creating a Connection
Sending a Message
4. Parsing and Transformations
The
Java API for XML Processing (JAXP)
SAX and DOM Parsing
XSLT Transformations
Piping Between SAAJ and JAXP
Streaming Between SAAJ and JAXP
Validating Request Content
5. Web Services and JSP
JSP and
XML
The JSTL
Core and XML Actions
JSP, JSTL and SOAP
Reading SOAP Using XPath
JSPs as Web-Service Clients
Custom Tags for JAXM and SAAJ
6. SOAP Attachments
SAAJ Object
Model, Revisited
The SOAPMessage Class
MIME
The Java Activation Framework
The MimeHeaders Class
The AttachmentPart Class
Adding SOAP Attachments
Identifying Attachments
Reading Attachments
7. SOAP Encoding
The Need for a
Common Encoding
The SOAP Section-5 Encoding
Type Model
Relationship to XML Schema
Values
Accessors
Structures
Arrays
Multiple-Reference Values
Mapping SOAP Types to Java
Module 3 – The Java API
for XML-Based RPC
1. Web Services Description Language
(WSDL)
Web Services as Component-Based
Software
The Need for an IDL
Web Services Description Language
WSDL Information Model
The Abstract Model - Service Semantics
Message Description
Messaging Styles
The Concrete Model - Ports, Services, Locations
Extending WSDL - Bindings
Service Description
2. The Java API for XML-Based RPC
(JAX-RPC)
The Java Web Services Architecture
Two Paths
How It Works - Build Time and Runtime
Mapping Between WSDL/XML and Java
Generating from WSDL
Generating from Java
Which Way to Go?
Passing Objects
Another CORBA?
3. Generating Web Services from
Java Code
The Java-to-XML Mapping
Primitive Types and Standard Classes
Value Types and JavaBeans
The Java-to-WSDL Mapping
Simple and Complex Types
Arrays and Enumerations
Service Endpoint Interface
Scope of Code Generation
Inheritance Support
Multi-Tier Application Design
Analyzing the Domain
When Things Don't Fit
Conversational State
Extensible Type Mapping
4. Generating Java Web Services
from WSDL
The XML-to-Java Mapping
Simple and Complex Types
Enumerations
Arrays
Miscellaneous, Optionally-Supported Constructs
The WSDL-to-Java Mapping
Mapping Operation Inputs and Outputs
Building a Service Client
Locating a Service
Client-Side Validation
Creating a Web Service
XML and WSDL Design Guidelines
Deploying the Service
5. Web Services and EJB
Enterprise
JavaBeans
Three Tiers for J2EE
EJB 2.1 and JAX-RPC
Session Beans as Web Service Endpoints
How It Works - Build Time and Runtime
The Bean's Service Endpoint Interface
SOAP as an RMI Transport
Adding a SOAP Interface to a Session Bean
Generating From WSDL
" Gotchas"
6. Message Context and Message
Handlers
SOAP Headers
Handling SOAP Headers
Servlet Endpoint Context
EJB Endpoint Context
Using SAAJ
JAX-RPC Message Handlers
Handler Chains
Processing Model and Patterns
Using JAXP
Session Management
|