Book description
This example-driven book offers a thorough introduction to Java's APIs for XML Web Services (JAX-WS) and RESTful Web Services (JAX-RS).
Java Web Services: Up and Running takes a clear, pragmatic approach to these technologies by providing a mix of architectural overview, complete working code examples, and short yet precise instructions for compiling, deploying, and executing an application. You'll learn how to write web services from scratch and integrate existing services into your Java applications. With Java Web Services: Up and Running, you will:
- Understand the distinction between SOAP-based and REST-style services
- Write, deploy, and consume SOAP-based services in core Java
- Understand the Web Service Definition Language (WSDL) service contract
- Recognize the structure of a SOAP message
- Learn how to deliver Java-based RESTful web services and consume commercial RESTful services
- Know security requirements for SOAP- and REST-based web services
- Learn how to implement JAX-WS in various application servers
Ideal for students as well as experienced programmers, Java Web Services: Up and Running is the concise guide you need to start working with these technologies right away.
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Preface
-
1. Java Web Services Quickstart
- What Are Web Services?
- A First Example
- A Perl and a Ruby Requester of the Web Service
- The Hidden SOAP
- A Java Requester of the Web Service
- Wire-Level Tracking of HTTP and SOAP Messages
- What’s Clear So Far?
- Java’s SOAP API
- An Example with Richer Data Types
- Multithreading the Endpoint Publisher
- What’s Next?
- 2. All About WSDLs
-
3. SOAP Handling
-
SOAP: Hidden or Not?
- SOAP 1.1 and SOAP 1.2
- SOAP Messaging Architecture
- Programming in the JWS Handler Framework
- The RabbitCounter Example
- Injecting a Header Block into a SOAP Header
- Configuring the Client-Side SOAP Handler
- Adding a Handler Programmatically on the Client Side
- Generating a Fault from a @WebMethod
- Adding a Logical Handler for Client Robustness
- Adding a Service-Side SOAP Handler
- Summary of the Handler Methods
- The RabbitCounter As a SOAP 1.2 Service
- The MessageContext and Transport Headers
- Web Services and Binary Data
- What’s Next?
-
SOAP: Hidden or Not?
-
4. RESTful Web Services
- What Is REST?
- From @WebService to @WebServiceProvider
- A RESTful Version of the Teams Service
- The Provider and Dispatch Twins
- Implementing RESTful Web Services As HttpServlets
- Java Clients Against Real-World RESTful Services
- WADLing with Java-Based RESTful Services
- JAX-RS: WADLing Through Jersey
- The Restlet Framework
- What’s Next?
- 5. Web Services Security
- 6. JAX-WS in Java Application Servers
- 7. Beyond the Flame Wars
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Java Web Services: Up and Running
- Author(s):
- Release date: February 2009
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596521127
You might also like
book
Java Web Services in a Nutshell
Java Web Services in a Nutshell is a high-speed tutorial and a quick reference for the …
video
Building Web Services with Java
In this Building Web Services with Java training course, expert author Martin Kalin will teach you …
book
Java Web Services: Up and Running, 2nd Edition
Learn how to develop REST-style and SOAP-based web services and clients with this quick and thorough …
book
RESTful Java Web Services - Third Edition
Master core REST concepts and create RESTful web services in Java About This Book Build efficient …