Book description
“J2EE™ Web Services is written in the tradition of great books people have come to expect from author Richard Monson-Haefel. More than a complete and concise Web services reference, this essential guide is the way for J2EE developers to quickly master Web services architecture and development.”
—Floyd
Marinescu
Author,
EJB Design Patterns
Director,
TheServerSide.com
“Written in a straightforward and approachable style, Monson-Haefel’s latest book is a mustread for any Java developer who is serious about understanding and applying the J2EE APIs in support of Web services. By concentrating on the core technologies endorsed by the WS-I, it clearly explains why Web services will succeed in realizing the interoperability promise where previous attempts have failed.”
—James
McCabe
Software
IT Architect IBM
“This is the best—and most complete—description of J2EE Web services that I’ve seen. If you’re a Java developer, you need this book.”
—David
Chappell
Chappell
& Associates
“For Java Web service developers, this book is going to be there on their desk next to their PC for easy reference. The book has it all, clear guides as to what WSDL, SAAJ, UDDI are, and how they are used in a variety of examples. Monson-Haefel has created another classic with this volume.”
—Dr.
Bruce Scharlau
Department
of Computing Science
University
of Aberdeen, Scotland
“Richard Monson-Haefel provides the most comprehensive analysis of J2EE Web services that I’ve seen so far to date. This book covers the core Web services technologies (XML, SOAP, WSDL, and UDDI), as well as the Java APIs for Web services (JAX-RPC, SAAJ, JAXR, JAXP, and Web Services for J2EE, version 1.1). Richard also goes into detail on issues such as fault handling, type mapping, and JAX-RPC handlers. Developers will find this book to be a very valuable reference.”
—Anne
Thomas Manes
Research
Director, Burton Group
Author,
Web Services: A Manager’s Guide
“J2EE™ Web Services is an excellent reference and tutorial for both beginning and seasoned Web services architects and developers. This book is the first to fully cover the WS-I 1.0 Web services standards and their integration with J2EE 1.4 components. Spend time with this book, and you’ll soon master J2EE Web Services and be able to successfully use this technology to solve key business integration problems in your enterprise.”
—Tom
Marrs
Senior
J2EE/XML/Web Services Architect
Distributed
Computing Solutions, Inc.
Web services are revolutionizing the way enterprises conduct business, as they allow disparate applications to communicate and exchange business data. Now, Java 2,
Table of contents
- Copyright
- Praise for J2EE™ Web Services
- Preface
- Acknowledgments
- 1. An Overview of J2EE 1.4 Web Services
-
I. XML
- 2. XML Basics
-
3. The W3C XML Schema Language
- 3.1. XML Schema Basics
- 3.2. Advanced XML Schema
- 3.3. Wrapping Up
-
II. SOAP and WSDL
-
4. SOAP
- 4.1. The Basic Structure of SOAP
- 4.2. SOAP Namespaces
- 4.3. SOAP Headers
- 4.4. The SOAP Body
- 4.5. SOAP Messaging Modes
- 4.6. SOAP Faults
- 4.7. SOAP over HTTP
- 4.8. Wrapping Up
-
5. WSDL
- 5.1. The Basic Structure of WSDL
- 5.2. WSDL Declarations: The definitions, types, and import Elements
- 5.3. The WSDL Abstract Interface: The message, portType, and operation Elements
- 5.4. WSDL Messaging Exchange Patterns
- 5.5. WSDL Implementation: The binding Element
- 5.6. WSDL Implementation: The service and port Elements
- 5.7. WS-I Conformance Claims
- 5.8. Wrapping Up
-
4. SOAP
-
III. UDDI
-
6. The UDDI Data Structures
- 6.1. The businessEntity Structure
- 6.2. The businessService and bindingTemplate Structures
- 6.3. The tModel Structure
- 6.4. The publisherAssertion Structure
- 6.5. UUID Keys
- 6.6. WS-I Conformance Claims
- 6.7. Wrapping Up
-
7. The UDDI Inquiry API
- 7.1. General Information about UDDI SOAP Messaging
-
7.2. The Inquiry Operations
-
7.2.1. Find Operations
- 7.2.1.1. Using Search Elements
- 7.2.1.2. Operation Definitions and Payloads
- 7.2.2. Get Operations
-
7.2.1. Find Operations
- 7.3. Wrapping Up
-
8. The UDDI Publishing API
-
8.1. Operation Definitions and Payloads
- 8.1.1. Authorization Operations
- 8.1.2. Save Operations
- 8.1.3. Delete Operations
- 8.1.4. Get Operations
- 8.2. Fault Messages
- 8.3. Wrapping Up
-
8.1. Operation Definitions and Payloads
-
6. The UDDI Data Structures
-
IV. JAX-RPC
- 9. JAX-RPC Overview
-
10. JAX-RPC Service Endpoints
- 10.1. A Simple JSE Example
- 10.2. The JSE Runtime Environment
- 10.3. Multi-threading and JSEs
- 10.4. Wrapping Up
- 11. JAX-RPC EJB Endpoints
- 12. JAX-RPC Client APIs
-
13. SAAJ
- 13.1. A Simple SAAJ Example
- 13.2. Creating a SOAP Message
-
13.3. Working with SOAP Documents
- 13.3.1. The SOAPPart and SOAPEnvelope Types
- 13.3.2. The SOAPFactory Class and Name Types
- 13.3.3. The SOAPElement Type
- 13.3.4. The Node Type
- 13.3.5. The SOAPHeader Type
- 13.3.6. The SOAPHeaderElement Type
- 13.3.7. The SOAPBody Type
- 13.3.8. The SOAPBodyElement Type
- 13.3.9. The Text Type
- 13.3.10. The SOAPConstants Class
- 13.3.11. The SOAPException Class
- 13.3.12. The SOAPFactory and SOAPElement Types
- 13.4. Working with SOAP Faults
- 13.5. Sending SOAP Messages with SAAJ
- 13.6. SAAJ 1.2 and DOM 2
- 13.7. Wrapping Up
- 14. Message Handlers
-
15. Mapping Java to WSDL and XML
- 15.1. Mapping WSDL to Java
- 15.2. Mapping XML Schema to Java
- 15.3. Holders
- 15.4. Faults and Java Exceptions
- 15.5. Wrapping Up
-
V. JAXR
- 16. Getting Started with JAXR
-
17. The JAXR Business Objects
- 17.1. The RegistryObject Interface
-
17.2. The Organization Information Object
- 17.2.1. businessEntity
- 17.2.2. ExternalLinks
- 17.2.3. Name and Description
- 17.2.4. User
- 17.2.5. Classification
- 17.2.6. ExternalIdentifiers
- 17.2.7. Services
- 17.3. Wrapping Up
- 18. The JAXR Technical Objects
-
19. The JAXR Inquiry and Publishing APIs
-
19.1. Mapping JAXR to the UDDI Inquiry API
- 19.1.1. Using Search Criteria
-
19.1.2. The findXXX() Methods
- 19.1.2.1. The findAssociations() Method
- 19.1.2.2. The findCallerAssociations() Method
- 19.1.2.3. The findOrganizations() Method
- 19.1.2.4. The findServices() Method
- 19.1.2.5. The findServiceBindings() Method
- 19.1.2.6. The findClassificationSchemes() Method
- 19.1.2.7. The findClassificationSchemeByName() Method
- 19.1.2.8. The findConcepts() Method
- 19.1.2.9. The findConceptByPath() Method
- 19.2. Mapping JAXR to the UDDI Publishing API
- 19.3. Wrapping Up
-
19.1. Mapping JAXR to the UDDI Inquiry API
-
VI. JAXP
- 20. SAX2
- 21. DOM 2
-
VII. Deployment
-
22. J2EE Deployment
- 22.1. Overview of the J2EE Deployment Process
- 22.2. J2EE Web Services Deployment
- 22.3. Deploying JSEs
- 22.4. Deploying EJB Endpoints
- 22.5. Service References
- 22.6. Wrapping Up
- 23. Web Service Descriptors
- 24. JAX-RPC Mapping Files
-
22. J2EE Deployment
-
Appendices
- A. XML DTDs
- B. XML Schema Regular Expressions
- C. Base64 Encoding
- D. SOAP RPC/Encoded
- E. SOAP Messages with Attachments
- F. SAAJ Attachments
- G. JAX-RPC and SwA
- H. Using JAX-RPC DII without a WSDL Document
- Bibliography
- Credits
Product information
- Title: J2EE™ Web Services
- Author(s):
- Release date: October 2003
- Publisher(s): Addison-Wesley Professional
- ISBN: 0321146182
You might also like
book
J2EE™ Platform Web Services
Build robust, scalable, end-to-end business solutions with J2EE™ Web Services. This is the definitive practitioner's guide …
book
Securing Web Services with WS-Security
Comprehensive coverage is given in this up-to-date and practical guide to Web services security--the first to …
book
SOA Using Java™ Web Services
Expert Solutions and State-of-the-Art Code Examples is a hands-on guide to implementing Web services and Service …
book
Understanding SOA with Web Services
Praise for Understanding SOA with Web Services "This book does the best job of describing not …