Java Web Services Training


Request an offer for delivery of this course

Course duration

Course Outline

A comprehensive look at the state of the art in developing interoperable web services on the Java EE 6 platform. Students learn the key standards -- SOAP, WSDL, and the WS-I Basic Profile -- and the Java architecture that has evolved to build interoperable services and clients. We begin with an introductory module that covers both SOAP-based and RESTful services, and therefore both JAX-WS and JAX-RS.

But JAX-WS is central to the course, and we cover both WSDL-driven and Java-driven development paths, as well as message handlers and attachment support. With the new Provider and Dispatch APIs, it's now much easier to integrate SAAJ, JAXB, and JAXP code into services and clients, and we explore these strategies in depth as well.

  1. Overview of Web Services
    1. Why Web Services?
    2. Service-Oriented Architecture
    3. HTTP and XML
    4. SOAP
    5. WSDL
    6. The SOAP Vision
    7. The REST Vision
    8. UDDI
    9. The WS-I Basic Profile
    10. Security
  2. Web Services for Java EE
    1. Hosting Web Services: Scenarios
    2. Web Services for Java EE
    3. JAX-WS and JAXB
    4. Web-Services Metadata
    5. WSDL-to-Java and Java-to-WSDL Paths
    6. Provider and Dispatch APIs
    7. SAAJ and JAXP
    8. JAX-RS for RESTful Services
    9. JAXR
  3. The Java API for XML Binding
    1. The Need for Data Binding
    2. XML Schema
    3. Two Paths
    4. JAXB Compilation
    5. Mapping Schema Types to Java
    6. Java-to-XML Mapping Using Annotations
    7. Marshaling and Unmarshaling
    8. Working with JAXB Object Models
  4. The Simple Object Access Protocol
    1. Messaging Model
    2. Namespaces
    3. SOAP over HTTP
    4. The SOAP Envelope
    5. The Message Header
    6. The Message Body
    7. SOAP Faults
    8. Attachments
  5. Web Services Description Language
    1. Web Services as Component-Based Software
    2. The Need for an IDL
    3. Web Services Description Language
    4. WSDL Information Model
    5. The Abstract Model -- Service Semantics
    6. Message Description
    7. Messaging Styles
    8. The Concrete Model -- Ports, Services, Locations
    9. Extending WSDL -- Bindings
    10. Service Description
  6. The Java API for XML-Based Web Services
    1. Two Paths
    2. How It Works: Build Time and Runtime
    3. The Service Endpoint Interface
    4. Working from WSDL
    5. Working from Java
    6. RPC and Document Styles
    7. One-Way Messaging
    8. Binary Protocols
  7. WSDL-to-Java Development
    1. The @WebService Annotation
    2. Generated Code
    3. Scope of Code Generation
    4. Parameter Order
    5. More JAXB: Mapping Collections
    6. More JAXB: Mapping Enumerations
    7. Applying JAXB Customizations
  8. Client-Side Development
    1. Stubs and Proxies
    2. Generated Code
    3. Locating a Service
    4. Invoking a Service
    5. The @WebServiceRef Annotation
  9. Java-to-WSDL Development
    1. Generating the WSDL and Schema
    2. The @WebMethod, @XmlParam, and Related Annotations
    3. More JAXB: Mapping Inheritance
    4. Controlling the XML Model
    5. Controlling the WSDL Description
    6. JAXB Customizations with @XmlJavaTypeAdapter
  10. Exception Handling
    1. SOAP Faults vs. Java Exceptions
    2. Mapping Faults from WSDL
    3. Mapping Exceptions from Java
    4. JAX-WS Exception API and Handling
    5. Client Exception Handling
  11. JAX-WS Best Practices
    1. Which Way to Go?
    2. Interoperability Impact
    3. Portability Impact
    4. Polymorphism in Web Services
    5. Web Services as Java EE Components
    6. Lifecycle Annotations
    7. Context Interfaces
  12. Metadata
    1. Abstract and Concrete Model Metadata
    2. Defaults
    3. Annotations
    4. webservices.xml and web.xml
    5. Best Practices and Pitfalls
  13. Provider and Dispatch APIs
    1. Stepping Down
    2. The @WebServiceProvider Annotation
    3. The Provider<T> Interface
    4. Implementing a Provider
    5. The @ServiceMode Annotation
    6. JAXB Without WSDL
    7. Integrating JAXP
    8. The Dispatch<T> Interface
    9. Building Clients
  14. The SOAP with Attachments API for Java
    1. The SAAJ Object Model
    2. Parsing a SOAP Message
    3. Reading Message Content
    4. Working with Namespaces
    5. Creating a Message
    6. Setting Message Content
    7. Relationship to the DOM
  15. Message Handlers
    1. Handling SOAP Headers
    2. Handlers and Handler Chains
    3. Configuration by XML or Annotation
    4. MessageContext and SOAPMessageContext
    5. Processing Model and Patterns
    6. Logical and Protocol Handlers
    7. Client-Side Handlers
  16. Handling Binary Content
    1. The WS-I Attachments Profile
    2. Using base64Binary
    3. MTOM and XOP
    4. JAX-WS Support
    5. Configuration by XML or Annotation
    6. Client-Side Support
    7. SAAJ Support

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).

InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)

For an overall view of our offerings, please visit us at