Synopses & Reviews
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.
Synopsis
A quick, practical, and thorough introduction
Synopsis
This example-driven book provides a quick, practical, and thorough introduction to Java's API for XML Web Services (JAX-WS) and the Java API for RESTful Web Services (JAX-RS).
About the Author
Martin Kalin has a Ph.D. from Northwestern University and is a professor in the College of Computing and Digital Media at DePaul University. He has co-written a series of books on C and C++ and written a book on Java for programmers. He enjoys commercial programming and has co-developed large distributed systems in process scheduling and product configuration.
Table of Contents
Preface; Code-Driven Approach; Chapter-by-Chapter Overview; Freedom of Choice: The Tools/IDE Issue; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1: Java Web Services Quickstart; 1.1 What Are Web Services?; 1.2 A First Example; 1.3 A Perl and a Ruby Requester of the Web Service; 1.4 The Hidden SOAP; 1.5 A Java Requester of the Web Service; 1.6 Wire-Level Tracking of HTTP and SOAP Messages; 1.7 What's Clear So Far?; 1.8 Java's SOAP API; 1.9 An Example with Richer Data Types; 1.10 Multithreading the Endpoint Publisher; 1.11 What's Next?; Chapter 2: All About WSDLs; 2.1 What Good Is a WSDL?; 2.2 WSDL Structure; 2.3 Amazon's E-Commerce Web Service; 2.4 The wsgen Utility and JAX-B Artifacts; 2.5 WSDL Wrap-Up; 2.6 What's Next?; Chapter 3: SOAP Handling; 3.1 SOAP: Hidden or Not?; 3.2 The RabbitCounter As a SOAP 1.2 Service; 3.3 The MessageContext and Transport Headers; 3.4 Web Services and Binary Data; 3.5 What's Next?; Chapter 4: RESTful Web Services; 4.1 What Is REST?; 4.2 From @WebService to @WebServiceProvider; 4.3 A RESTful Version of the Teams Service; 4.4 The Provider and Dispatch Twins; 4.5 Implementing RESTful Web Services As HttpServlets; 4.6 Java Clients Against Real-World RESTful Services; 4.7 WADLing with Java-Based RESTful Services; 4.8 JAX-RS: WADLing Through Jersey; 4.9 The Restlet Framework; 4.10 What's Next?; Chapter 5: Web Services Security; 5.1 Overview of Web Services Security; 5.2 Wire-Level Security; 5.3 Securing the RabbitCounter Service; 5.4 Container-Managed Security for Web Services; 5.5 WS-Security; 5.6 What's Next?; Chapter 6: JAX-WS in Java Application Servers; 6.1 Overview of a Java Application Server; 6.2 Deploying @WebServices and @WebServiceProviders; 6.3 Integrating an Interactive Website and a Web Service; 6.4 A @WebService As an EJB; 6.5 Java Web Services and Java Message Service; 6.6 WS-Security Under GlassFish; 6.7 Benefits of JAS Deployment; 6.8 What's Next?; Chapter 7: Beyond the Flame Wars; 7.1 A Very Short History of Web Services; 7.2 SOAP-Based Web Services Versus Distributed Objects; 7.3 SOAP and REST in Harmony; Colophon;