Learn your way! Get started

Java EE, Part 7 of 8: JAX-WS Web Services

with expert Ali Hamad


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 2/15/2011
Level Intermediate
Runtime 8h 3m
Closed captioning N/A
Transcript N/A
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

Java is a very important part of Internet usage or services, thus being able to deal with web services in Java is also very important. This course will cover many of the necessary aspects of dealing with the Java API for XML (JAX) Web Services. The course will start with basic introductions to the Eclipse programming platform and Web Services and then move on to Basic XML Schemas and Schema Content Management. From there, Java API for XML Binding (JAXB) will be covered and JAX-WS will be introduced. Once the basic foundation is covered the course moves into the start of web services with Declarative Service Configuration, Web Service Description Language (WSDL) and Configuration Management, as well as introducing JAX-WS 2.0.

Prerequisites

This course is intended for Java programmers with beginner level knowledge of Java EE and XML.

Learning Paths

This course will help you prepare for the following certifications and exams:
Java EE 5 Web Services Developer
Java EE 6 Web Services Developer
1Z0-862: Java EE 5 Web Services Developer Certified Professional Exam
1Z0-897: Java EE 6 Web Services Developer Certified Expert Exam

This course is part of the following LearnNowOnline SuccessPaths™:
Java Development

Meet the expert

Ali Hamad has a Bachelor and Masters degree in Computer Science and has been training many aspects of Java for over 14 years, covering Introduction through JDBC, JBoss and beyond. His training and consulting background also covers C, C , Object Oriented Analysis and Design (OOAD), and Unix/Linux. Ali has worked for or been a consultant and trainer for many companies including Dell, Texas Instruments, State of New Hampshire, Web Age Solutions, and many more. He is the author of training material for several programming topics such as Java, Struts, C , Unix and J2EE applications.

Course outline



Using Eclipse

Using Eclipse Part 1 (12:26)
  • Introduction (01:16)
  • The Eclipse Platform (02:41)
  • Demo: Installing JDK (02:01)
  • Demo: Environment Variables (02:48)
  • Demo: Testing (03:25)
  • Summary (00:13)
Using Eclipse Part 2 (33:14)
  • Introduction (00:25)
  • Views, Perspective and Editor Areas (03:41)
  • Basic Operations With Views (02:01)
  • The Java Perspective (00:30)
  • The Debug Perspective (00:21)
  • WTP (06:11)
  • Tomcat Servlet & JSP Web Container (01:48)
  • The JBoss Application Server (03:33)
  • Demo: Setting Up Environment (14:14)
  • Summary (00:25)

Intro to Web Services

Intro To Web Services (35:24)
  • Introduction (00:27)
  • A Conceptual Look at Services (01:28)
  • Defining Services (04:22)
  • Server Communication Analogy (01:11)
  • Three Key Service Questions (01:26)
  • Connecting The Dots (01:13)
  • SOA: Runtime Implementation (02:21)
  • What is a Web Service? (01:37)
  • Enterprise Assets as Services (01:34)
  • Typical Development Workflow (02:18)
  • Advantages of Web Services (01:23)
  • Web Service Business Models (02:22)
  • Example: Internal System Integration (02:20)
  • Example: Business Process Externalization (01:44)
  • Demo: Web Service (09:06)
  • Summary (00:25)
Web Service Standards (36:40)
  • Introduction (00:34)
  • Binding via SOAP (02:26)
  • SOAP in Protocol Stack (00:38)
  • SOAP Structure (01:33)
  • SOAP Message Architecture (01:10)
  • Applying SOAP (01:35)
  • Interface with WSDL (02:43)
  • WSDL Structure (01:01)
  • Applying WSDL (02:00)
  • Locating a Service (00:29)
  • UDDI Overview (03:03)
  • Applying UDDI (00:17)
  • WS-I Overview (01:40)
  • WS-I Deliverables (01:10)
  • Demo: More Web Service (16:02)
  • Summary (00:12)

Schema Config Management

Basic XML Schemas (34:18)
  • Introduction (00:55)
  • What is XML Schema? (01:54)
  • Goals of Schema (02:04)
  • Converting DTDs to Schema (00:30)
  • Recall: Namespaces (01:06)
  • The equivalent schema (02:04)
  • Sample instance document (00:46)
  • Documents Needed (00:45)
  • XML Schema Namespaces (00:57)
  • Link Documents to Schemas (01:43)
  • Inline element declarations (00:37)
  • XSchema Data Types (00:31)
  • XSchema Type Defintions (00:44)
  • XSchema Simple Data Types (01:06)
  • Primitive Data Types (00:42)
  • Simple Types (00:49)
  • Demo: XML Schema File (16:38)
  • Summary (00:19)
Common Facets (16:49)
  • Introduction (00:33)
  • Element Content Restrictions (00:30)
  • Using the Facet (01:10)
  • More Samples (00:44)
  • Define Simple Element Type (00:57)
  • Element Declaration (00:50)
  • Element Occurrence Indicators (00:35)
  • Complex Type (00:42)
  • Attribute Declarations (00:55)
  • Occurrence of Attributes (00:46)
  • Attribute Value Constraints (00:45)
  • Sequence Element (00:27)
  • Element Choices (00:16)
  • Express any Order (00:25)
  • Annotations (00:45)
  • Demo: Common Facets (06:04)
  • Summary (00:21)
Schema Config Management (11:43)
  • Introduction (00:37)
  • Evolving Schema (01:07)
  • Managing XML Schema (00:49)
  • Management Techniques (00:57)
  • Internal Techniques (01:22)
  • Schema Attribute Version (01:02)
  • Adding an Attribute (01:31)
  • Namespace Change (00:45)
  • File-Based Mechanisms (01:18)
  • External (00:58)
  • Which To Use? (01:01)
  • Summary (00:12)

XML and JAXB

JAXBOverview (32:30)
  • Introduction (00:28)
  • Overview of JAXB (02:53)
  • Advantages of JAXB (01:57)
  • XML Parsing APIs (01:21)
  • Validation using Schemas (01:03)
  • Java Binding (00:40)
  • Using JAXB (00:42)
  • Binding XML To a Schema (00:47)
  • Binding Compiler (01:14)
  • Interfaces and Classes (01:54)
  • Implementing Classes (00:47)
  • Compiling the files (01:02)
  • Use the generated files (01:07)
  • Unmarshal (01:14)
  • To Unmarshal (02:31)
  • Retrieving data (00:23)
  • Validation (00:57)
  • Demo: JAXB APIs (11:10)
  • Summary (00:12)
XML and JAXB (23:05)
  • Introduction (00:27)
  • ObjectFactory (00:51)
  • Generating XML from JAXB (00:32)
  • Step 1: Binding the schema (00:19)
  • Step 2: Create the content tree (01:04)
  • Step 3: Marshall the content tree (00:31)
  • Marshall the content tree (00:55)
  • Validation (00:38)
  • Customizing your application (00:25)
  • Advantages (01:31)
  • Demo: Bind to read XML (15:34)
  • Summary (00:12)

Introduction to JAX-WS

Introduction to JAX-WS (36:55)
  • Introduction (00:36)
  • JAX Attack (01:56)
  • JAX-WS Origins (01:57)
  • JAX-WS Architecture and Tools (03:15)
  • Providing a Service (03:14)
  • Service Source (Option 1) (01:56)
  • Service-enabling Java (02:00)
  • Service Source (Option 2) (00:37)
  • Calling a Service (01:36)
  • Client Source (Option 1) (00:38)
  • Client Source (Option 2) (03:18)
  • Advanced Features (01:29)
  • Demo: JAX-WS (13:51)
  • Summary (00:26)

Declarative Service Config

Declarative Service Config (31:07)
  • Introduction (00:35)
  • Configure Eclipse: Annotations (00:43)
  • Start-from-Java (00:31)
  • JSR-181 Annotations (00:56)
  • Core Annotations (01:09)
  • Hello World Example (00:20)
  • WebService Annotation Params (01:43)
  • @OneWay Annotation (00:24)
  • WebParam Annotation Params (00:54)
  • WebResult Annotation Params (00:23)
  • More Annotations (00:36)
  • HandlerChain Annotation Params (00:18)
  • SoapBinding Annotation Params (00:31)
  • Advanced Hello World Example (01:24)
  • WSDL Generated (02:53)
  • Demo: Declarative Service Conf (17:12)
  • Summary (00:29)

WSDL Overview

WSDL Overview (39:16)
  • Introduction (00:30)
  • WSDL Overview (02:44)
  • WSDL Document Tags (03:08)
  • WSDL Namespaces (01:14)
  • <definitions> (00:30)
  • <import> (00:44)
  • <types> (00:38)
  • <message> (02:06)
  • <portType> (00:58)
  • <operation> (00:50)
  • One-way <operation> (00:58)
  • Request-Response <operation> (01:05)
  • Solicit-Response <operation> (00:33)
  • Notification <operation> (00:12)
  • Modeling Simple Operation (00:45)
  • Demo: WSDL (22:02)
  • Summary (00:12)
Modeling Operations (28:36)
  • Introduction (00:32)
  • Modeling Complex Operations (01:35)
  • <binding> (01:18)
  • More on <binding> (01:11)
  • <binding> Syntax (02:00)
  • <service> and <port> (01:47)
  • More on <port> (01:02)
  • WSDL SOAP Binding Extensions (01:34)
  • soap:binding (00:45)
  • soap:operation (01:06)
  • RPC or Document Style (01:02)
  • WSDL API for Java (01:08)
  • Demo: WSDL (13:13)
  • Summary (00:18)
Maybe Its Modeling Operations (10:36)
  • Introduction (00:20)
  • Demo: WSDL continued (00:47)
  • Demo: Schema Editor (01:08)
  • Demo: Editing Types (02:03)
  • Demo: Relating Elements & Type (06:04)
  • Summary (00:12)

Configuration Management

Configuration Management (14:38)
  • Introduction (00:42)
  • SOA Configuration Challenges (01:31)
  • Service Versioning (01:52)
  • XML Schema Versioning (01:32)
  • XML Schema Versioning Guidlines (01:15)
  • WSDL Versioning (03:26)
  • Standards Work (00:37)
  • Vendor Support (00:55)
  • Configuration Management Tips (01:37)
  • Configuration Managment Gotchas (00:44)
  • Summary (00:24)
Details (44:52)
  • Introduction (00:35)
  • JAX-WS (01:40)
  • JAX-WS Scope (02:01)
  • JAX-WS and JAXB (00:52)
  • JAX-WS Implementors (02:38)
  • WSDL-to-Java Mapping (02:25)
  • WSDL Files (01:25)
  • <defintions> (01:04)
  • <portType> (01:22)
  • <types> (01:27)
  • <operation> (00:55)
  • <operation> parameters (01:19)
  • <fault> (00:57)
  • Customization Binding (01:44)
  • JAVA-to-WSDL Mapping (01:38)
  • The Implementation Class (00:59)
  • Package Name (01:27)
  • Class Name (00:49)
  • Methods and Types (01:10)
  • JAXB Usage (00:37)
  • Exceptions (00:48)
  • Demo: Top-Down Web Service (16:34)
  • Summary (00:17)

Available JAX APIs

Available JAX APIs (40:58)
  • Introduction (00:34)
  • Available API (01:16)
  • Client API - Service (00:54)
  • Service (00:33)
  • Using Service (02:16)
  • Dispatch (01:26)
  • Provider (01:34)
  • WebServiceContext (00:56)
  • Exception Classes (01:36)
  • WebServiceFeature (00:38)
  • Annotation Support (00:59)
  • JAX-WS Annotations (01:42)
  • The Handler Framework (01:54)
  • Handler Invocation (00:44)
  • Handler Types (00:46)
  • Using Handlers (01:06)
  • Demo: Available JAX APIs (21:32)
  • Summary (00:23)