Home > Store

J2EE™ Web Services

Register your product to gain access to bonus material or receive a coupon.

J2EE™ Web Services


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2004
  • Dimensions: 7" x 9-1/4"
  • Pages: 928
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-14618-2
  • ISBN-13: 978-0-321-14618-2

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, Enterprise Edition (J2EE™) delivers a complete Web services platform. But how do you make sense of the sea of acronyms in this emerging area? Richard Monson-Haefel comes to the rescue with this essential guide for Java developers who need to understand J2EE APIs for Web services and the Web services standards.

J2EE™ Web Services is a comprehensive guide to developing and deploying Web services using J2EE technology. Concentrating on standards sanctioned by the Web Services Interoperability Organization (WS-I) for maximum interoperability, the author delves into Web-service standards and the J2EE 1.4 Web-service APIs and components with clear and engaging discussions.

Key topics covered include:

  • XML (eXtensible Markup Language) and XML Schema
  • SOAP (Simple Object Access Protocol)
  • WSDL (Web Services Description Language)
  • UDDI (Universal Description, Discovery, and Integration)
  • JAX-RPC (Java API for XML-based RPC)
  • SAAJ (SOAP with Attachments API for Java)
  • JAXR (Java API for XML Registries)
  • JAXP (Java API for XML Processing)
  • The appendices complement this wealth of information with coverage of XML regular expressions, Base 64 encoding, DTDs (document type definitions), SOAP Messages with Attachments (SwA), RCP/Encoded SOAP messaging, and references to other resources. In short, this accessible reference will give Java developers the tools they need to use J2EE technologies and APIs to integrate both enterprise applications and Web-based applications.


    Author's Site

    Click for the Author's Web Site related to this title.

    Sample Content

    Online Sample Chapter

    Using SOAP with J2EE

    Downloadable Sample Chapter

    Download the Sample Chapter related to this title.

    Table of Contents


    Are Web Services Important?

    What Do I Need to Know to Read This Book?

    What Does This Book Cover?

    How Is This Book Organized?

    What Doesn't This Book Cover?


    1. An Overview of J2EE 1.4 Web Services.

    The J2EE Platform.

    The Technologies of Web Services.

    The J2EE Web Service APIs.

    Wrapping Up.

    I. XML.

    2. XML Basics.

    XML Primer.

    XML Namespaces.

    Wrapping Up.

    3. The W3C XML schema language.

    XML Schema Basics.

    Advanced XML Schema.

    Wrapping Up.


    4. SOAP.

    The Basic Structure of SOAP.

    SOAP Namespaces.

    SOAP Headers.

    The SOAP Body.

    SOAP Messaging Modes.

    SOAP Faults.

    SOAP over HTTP.

    Wrapping Up.

    5. WSDL.

    The Basic Structure of WSDL.

    WSDL Declarations: The definitions, types, and import Elements.

    The WSDL Abstract Interface: The message, portType, and operation Elements.

    WSDL Messaging Exchange Patterns.

    WSDL Implementation: The binding Element.

    WSDL Implementation: The service and port Elements.

    WS-I Conformance Claims.

    Wrapping Up.

    III. UDDI.

    6. The UDDI Data Structures.

    The businessEntity Structure.

    The businessService and bindingTemplate Structures.

    The tModel Structure.

    The publisherAssertion Structure.

    UUID Keys.

    WS-I Conformance Claims.

    Wrapping Up.

    7. The UDDI Inquiry API.

    General Information about UDDI SOAP Messaging.

    The Inquiry Operations.

    Wrapping Up.

    8. The UDDI Publishing API.

    Operation Definitions and Payloads.

    Fault Messages.

    Wrapping Up.

    IV. JAX-RPC.

    9. JAX-RPC Overview.

    The Server-Side Programming Models.

    The Client-Side Programming Models.

    Other JAX-RPC Topics Covered.


    Wrapping Up.

    10. JAX-RPC Service Endpoints.

    A Simple JSE Example.

    The JSE Runtime Environment.

    Multi-threading and JSEs.

    Wrapping Up.

    11. JAX-RPC EJB Endpoints.

    An Enterprise JavaBeans Primer.

    Enterprise JavaBeans Web Services.

    Wrapping Up.

    12. JAX-RPC Client APIs.

    Generated Stubs.

    Dynamic Proxies.


    Wrapping Up.

    13. SAAJ.

    A Simple SAAJ Example.

    Creating a SOAP Message.

    Working with SOAP Documents.

    Working with SOAP Faults.

    Sending SOAP Messages with SAAJ.

    SAAJ 1.2 and DOM 2.

    Wrapping Up.

    14. Message Handlers.

    A Simple Example.

    Handler Chains and Order of Processing.

    The Handler Runtime Environment.

    Wrapping Up.

    15. Mapping Java to WSDL and XML.

    Mapping WSDL to Java.

    Mapping XML Schema to Java.


    Faults and Java Exceptions.

    Wrapping Up.

    V. JAXR.

    16. Getting Started with JAXR.

    Using a UDDI Test Registry.

    Connecting to a UDDI Registry.

    Using the RegistryService and BusinessLifeCycleManager.

    The BulkResponse Type.


    Wrapping Up.

    17. The JAXR Business Objects.

    The RegistryObject Interface.

    The Organization Information Object.

    Wrapping Up.

    18. The JAXR Technical Objects.

    The Service and ServiceBinding Information Objects.

    The Concept Information Object.

    The SpecificationLink Information Object.

    The Association Information Object.

    Predefined Enumerations.

    Wrapping Up.

    19. The JAXR Inquiry and Publishing APIs.

    Mapping JAXR to the UDDI Inquiry API.

    Mapping JAXR to the UDDI Publishing API.

    Wrapping Up.

    VI. JAXP.

    20. SAX2.

    Parsing with SAX: XMLReaderFactory and XMLReader.

    The ContentHandler and DefaultHandler Interfaces.

    Validating with W3C XML Schema.

    Wrapping Up.

    21. DOM 2.

    Parsing with DOM: DocumentBuilderFactory and DocumentBuilder.


    Building a DOM Document.

    Copying Nodes.

    Wrapping Up.


    22. J2EE Deployment.

    Overview of the J2EE Deployment Process.

    J2EE Web Services Deployment.

    Deploying JSEs.

    Deploying EJB Endpoints.

    Service References.

    Wrapping Up.

    23. Web Service Descriptors.

    The wsdl-file and wsdl-port Elements.

    The port-component-name Element.

    The service-endpoint-interface Element.

    The service-impl-bean Element.

    The jaxrpc-mapping-file Element.

    The handler Element.

    Wrapping Up.

    24. JAX-RPC Mapping Files.

    Conditions for a Lightweight JAX-RPC Mapping File.

    A Lightweight Example.

    A Heavyweight Example.

    Anatomy of a Mapping File.

    Wrapping Up.


    Appendix A. XML DTDs.
    Appendix B. XML Schema Regular Expressions.

    Character Sets.


    Other Meta-characters.

    Real-World Examples.

    Appendix C. Base64 Encoding.
    Appendix D. SOAP RPC/Encoded.

    The soap:encodingStyle Attribute.

    The Operation Structs.

    Simple Types.

    Complex Types.

    Array Types.


    Wrapping Up.

    Appendix E. SOAP Messages with Attachments.

    Understanding MIME.

    Using MIME with SOAP.

    Wrapping Up.

    Appendix F. SAAJ Attachments.

    The Java Activation Framework.

    SAAJ and JAF: AttachmentPart.

    The SOAPPart.

    The SOAPEnvelope.

    Wrapping Up.

    Appendix G. JAX-RPC and SwA.

    JAF Revisited: DataContentHandler and DataSource Types.

    A Simple Example.

    Mapping MIME Types to Java.

    Using DataHandler and DataSource Types.

    Wrapping Up.

    Appendix H. Using JAX-RPC DII without a WSDL Document.
    Index. 0321146182T10062003


    Download the Index file related to this title.


    Submit Errata

    More Information

    Unlimited one-month access with your purchase
    Free Safari Membership