Way to go! Easy to log on and easy way to learn! More Testimonials »

Java Web Services Training

Delivery Options

Class Date and Time Price Pricing Information
$2,625.00
or 5 vouchers vouchers
$2,625.00 or 5 vouchers vouchers
$2,625.00 or 5 vouchers vouchers

Class Description

Class Overview

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.

Class Goals

  • Be able to describe the interoperable web services architecture, including the roles of SOAP and WSDL in component-based services and XML and HTTP in the REST architecture.
  • Understand the importance of the WS-I Basic Profile for interoperable web services.
  • Build JAX-WS services and clients that take full advantage of the automated data binding of JAXB.
  • Build WSDL-to-Java and Java-to-WSDL services, with equal facility.
  • Apply advanced techniques and best practices including proper exception handling, care around possibe polymorphism, and use of context and lifecycle services.
  • Use lower-level SOAP and XML APIs for services and/or clients.
  • Customize data binding by specifying specific type mappings or altering method or parameter names.
  • Incorporate binary data, such as images, into service and client code.

Class Outline

  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

Class Materials

Each student in our Live Online and our Onsite classes receives a comprehensive set of materials, including course notes and all the class examples.

Class Prerequisites

Experience in the following areas is required:

  • Strong Java programming skills are essential
  • Students must be able to read XML documents and to write well-formed XML by hand
  • Experience with other Java EE standards, especially servlets and JSP, will be very helpful in class, but is not strictly required.

Technical Requirements

Our computer technical requirements and setup process is easy, with support just a click away.


  • Java ®, all Java-based marks, Hibernate ®, and all Hibernate-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries.
Client Success
  1. Independent Survey
  2. Client List
  3. Testimonials
Join The Team
  1. Learn how you can become a Webucator Trainer
  2. Career Opportunities
Locations
Compare Us
Watch 3-minute Demo Video
of Live Online Training:
Learn the benefits of online training with Webucator
Webucator is a Registered Education Provider (R.E.P.) approved by PMI to issue professional development units (PDUs) for our training courses.
© Webucator, Inc. All rights reserved. | Toll Free: 1-877-932-8228 | From outside the USA: 315-849-2724| Fax: 315-849-2723