Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Java Web Services: Up and Running
Preface
What’s Changed in the Second Edition?
Web Service APIs and Publication Options
The Publication Options
Chapter-by-Chapter Overview
Tools and IDEs
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Web Services Quickstart
Web Service Miscellany
What Good Are Web Services?
Web Services and Service-Oriented Architecture
A Very Short History of Web Services
From DCE/RPC to XML-RPC
Distributed Object Architecture: A Java Example
Web Services to the Rescue
What Is REST?
Verbs and Opaque Nouns
Review of HTTP Requests and Responses
HTTP as an API
Two HTTP Clients in Java
A First RESTful Example
How the Predictions Web Service Works
The Tomcat web server
An Ant script for service deployment
A Client Against the Predictions Web Service
Why Use Servlets for RESTful Web Services?
What’s Next?
2. RESTful Web Services: The Service Side
A RESTful Service as an HttpServlet
Implementation Details
Sample Client Calls Against the predictions2 Service
A RESTful Web Service as a JAX-RS Resource
A First JAX-RS Web Service Using Jersey
Publishing JAX-RS Resources with a Java Application
Publishing JAX-RS Resources with Tomcat
The Adage Class
JAX-RS Generation of XML and JSON Responses
Porting the Predictions Web Service to JAX-RS
A RESTful Web Service as Restlet Resources
Sample Calls Against the adages2 Service
Publishing the adages2 Restlet Service Without a Web Server
A RESTful Service as a @WebServiceProvider
What’s Next?
3. RESTful Web Services: The Client Side
A Perl Client Against a Java RESTful Web Service
A Client Against the Amazon E-Commerce Service
A Standalone JAX-B Example
The XStream Option
Another Client Against the Amazon E-Commerce Service
The CTA Bus-Tracker Services
RESTful Clients and WADL Documents
The JAX-RS Client API
JSON for JavaScript Clients
JSONP and Web Services
A Composed RESTful Service with jQuery
An Ajax Polling Example
What’s Next?
4. SOAP-Based Web Services
A SOAP-Based Web Service
The RandService in Two Files
Clients Against the RandService
A Java Client Against the RandService
A C# Client Against the RandService
A Perl Client Against the RandService
The WSDL Service Contract in Detail
The types Section
The message Section
The portType Section
The binding Section
The service Section
Java and XML Schema Data Type Bindings
Wrapped and Unwrapped Document Style
wsimport Artifacts for the Service Side
SOAP-Based Clients Against Amazon’s E-Commerce Service
Asynchronous Clients Against SOAP-Based Services
What’s Next?
5. SOAP Handlers and Faults
The Handler Level in SOAP-Based Services and Clients
Handlers and Faults in the predictionsSOAP Service
The Backend Support Classes
From the Client to the Service
Signature Verification
Faults from the Application and Handler Levels
Linking the Service-Side Handler to the Service
A Handler Chain with Two Handlers
SOAP-Based Web Services and Binary Data
The Transport Level
Axis2
What’s Next?
6. Web Services Security
Wire-Level Security
HTTPS Basics
Symmetric and Asymmetric Encryption/Decryption
How HTTPS Provides the Three Security Services
The HTTPS Handshake
The HttpsURLConnection Class
A Very Lightweight HTTPS Server and Client
HTTPS in a Production-Grade Web Server
Enforcing HTTPS Access to a Web Service
An HTTPS Client Against the predictions2 Service
Container-Managed Security
Linking the Service web.xml with a Tomcat Security Realm
The Client Side in Users/Roles Security
Using the curl Utility for HTTPS Testing
A @WebService Under HTTPS with Users/Roles Security
Using a Digested Password Instead of a Password
WS-Security
Securing a @WebService with WS-Security
What’s Next?
7. Web Services and Java Application Servers
The Web Container
The Message-Oriented Middleware
The Enterprise Java Bean Container
The Naming and Lookup Service
The Security Provider
The Client Container
The Database System
Toward a Lightweight JAS
GlassFish Basics
Servlet-Based Web Services Under GlassFish
An Example with Mixed APIs
An Interactive Website and a SOAP-Based Web Service
A @WebService as a @Stateless Session EJB
Packaging and Deploying the predictionsEJB Service
A Client Against the predictionsEJB Service
TomEE: Tomcat with Java EE Extensions
Porting the predictionsEJB Web Service to TomEE
Deploying an EJB in a WAR File
Where Is the Best Place to Be in Java Web Services?
Back to the Question at Hand
Index
About the Author
Colophon
Copyright
← Prev
Back
Next →
← Prev
Back
Next →