Java Web Services: Up and Running. A Quick, Practical, and Thorough Introduction. 2nd Edition - Helion
ISBN: 978-14-493-7387-0
stron: 360, Format: ebook
Data wydania: 2013-08-27
Księgarnia: Helion
Cena książki: 126,65 zł (poprzednio: 147,27 zł)
Oszczędzasz: 14% (-20,62 zł)
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 compiling, deploying, and executing them. You’ll learn how to write services from scratch and integrate existing services into your Java applications.
With greater emphasis on REST-style services, this second edition covers HttpServlet, Restlet, and JAX-RS APIs; jQuery clients against REST-style services; and JAX-WS for SOAP-based services. Code samples include an Apache Ant script that compiles, packages, and deploys web services.
- Learn differences and similarities between REST-style and SOAP-based services
- Program and deliver RESTful web services, using Java APIs and implementations
- Explore RESTful web service clients written in Java, JavaScript, and Perl
- Write SOAP-based web services with an emphasis on the application level
- Examine the handler and transport levels in SOAP-based messaging
- Learn wire-level security in HTTP(S), users/roles security, and WS-Security
- Use a Java Application Server (JAS) as an alternative to a standalone web server
Osoby które kupowały "Java Web Services: Up and Running. A Quick, Practical, and Thorough Introduction. 2nd Edition", wybierały także:
- Metoda dziel i zwyci 89,00 zł, (26,70 zł -70%)
- Język C. Kurs video. Praktyczne wprowadzenie do programowania 99,00 zł, (29,70 zł -70%)
- Wprowadzenie do Javy. Programowanie i struktury danych. Wydanie XII 193,23 zł, (59,90 zł -69%)
- Spring i Spring Boot. Kurs video. Testowanie aplikacji i bezpiecze 125,42 zł, (45,15 zł -64%)
- Maven. Kurs video. Automatyzacja tworzenia aplikacji w Javie 98,98 zł, (39,59 zł -60%)
Spis treści
Java Web Services: Up and Running. A Quick, Practical, and Thorough Introduction. 2nd Edition eBook -- spis treści
- Java Web Services: Up and Running
- Preface
- Whats 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
- How the Predictions Web Service Works
- Why Use Servlets for RESTful Web Services?
- Whats 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
- Whats Next?
- A RESTful Service as an HttpServlet
- 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
- Whats 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 Amazons E-Commerce Service
- Asynchronous Clients Against SOAP-Based Services
- Whats 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
- Whats 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
- Whats Next?
- Wire-Level Security
- 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
- The Web Container
- Index
- About the Author
- Colophon
- Copyright