560. Overview of Java Web Services
Version 6.0

Book cover

This course provides an overview of web services development in the Java EE platform, starting with a look at interoperable standards and then delving into Java technology to implement them. We look at both the SOAP-oriented and RESTful schools of service architecture. Then we look at examples of services developed using the APIs that are standard to the Java EE 6 platform: JAX-WS, SAAJ, and JAX-RS in particular.

Though it includes plenty of code and message-content details, and some short labs at the end of the day, this course is intended to be useful both to Java develoers and to non-developers who wish to gain familiarity with the key concepts of web services and Java WS technology.


  • Java programming experience is assumed, and is necessary for the lab exercises. But those without Java skills can still profit from taking the course, so this is not a hard prerequisite.

Learning Objectives

  • Be able to describe the interoperable web services architecture, including the roles of SOAP and WSDL.
  • Understand the importance of the WS-I Basic Profile for interoperable web services.
  • Build simple web SOAP services using JAX-WS.
  • Build simple web RESTful services using JAX-RS.

Timeline: 1 day.

Server Support: GlassFish

  • This version of the course works with the GlassFish server. Our Java EE courses are available in variants that support various server products, including Tomcat, GlassFish, JBoss, and WebLogic. For more details, and to find a desired server-specific version of a course, see our server-support matrix.

IDE Support: Eclipse Helios

  • In addition to the primary lab files, an optional overlay is available that adds support for Eclipse Helios. Students can code, build, deploy, and test all exercises from within the IDE, and take advantage of built-in editors, integrated debugging, etc. See also our orientation to Using Capstone's Eclipse Overlays.

Chapter 1. Overview of Web Services

  • Why Web Services?
  • Service-Oriented Architecture
  • HTTP and XML
  • SOAP
  • WSDL
  • The SOAP Vision
  • The REST Vision
  • UDDI
  • The WS-I Basic Profile
  • Security

Chapter 2. Web Services for Java EE

  • Hosting Web Services: Scenarios
  • Web Services for Java EE
  • JAX-WS and JAXB
  • Web-Services Metadata
  • WSDL-to-Java and Java-to-WSDL Paths
  • Provider and Dispatch APIs
  • SAAJ and JAXP
  • JAX-RS for RESTful Services
  • JAXR

Appendix A. Course Tools and Utilities

Appendix B. Handy Guide to Web-Services Acronyms

System Requirements

Hardware Requirements (Minimum) Core 2 Duo, 1.5 GHz, 2 gig RAM, 1 gig disk space.
Hardware Requirements (Recommended) Core 2 Duo, 2.5 GHz GHz, 4 gig RAM, 1 gig disk space.
Operating System Tested on Windows 7 and Windows XP Professional. Course software should be viable on all systems which support a Java 6 Developer's Kit.
Network and Security Limited privileges required -- please see our standard security requirements.
Software Requirements All free downloadable tools.