Java web services up and running
Learn how to develop REST-style and SOAP-based web services and clients with this quick and thorough introduction. This hands-on book delivers a clear, pragmatic approach to web services by providing an architectural overview, complete working code examples, and short yet precise instructions for co...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Beijing ; Sebastopol, California :
O'Reilly
2013.
|
Edición: | Second edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629639706719 |
Tabla de Contenidos:
- Intro
- Copyright
- Table of Contents
- 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
- Chapter 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
- A Client Against the Predictions Web Service
- Why Use Servlets for RESTful Web Services?
- What's Next?
- Chapter 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?
- Chapter 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?
- Chapter 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?
- Chapter 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?
- Chapter 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?
- Chapter 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.