Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Robert Englander

Java's resources for building SOAP-based web services are unfamiliar to many developers, and even those who are familiar with them are challenged by how rapidly they're evolving. Java and SOAP is designed for both groups of developers.Over time, SOAP development will become increasingly transparent: You'll write your Java code, and the SOAP APIs will do all the heavy lifting. But until nirvana arrives, you do need to concern yourself with encoding and interoperability issues (think .NET). So you'll really appreciate the "under the hood" information this book gives you - not just about encoding, but also about custom object types and serialization, handling errors and attachments, and many other crucial topics.Author Rob Englander also does an admirable job of preparing you for changes yet to come. For instance, while its examples are based on Apache SOAP 2.0 (and the widely used "GLUE" alternative), Englander also previews Axis, a forthcoming "from-scratch rewrite" that will make Apache SOAP more modular and flexible while offering far better performance. There's also a full chapter on Sun's brand-new Java API for XML-based RPC (JAX-RPC).

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on guide for Java developers who need to build SOAP-based web services before the tooling became invisible, covering encoding, interoperability, and the major Java SOAP APIs of the early 2000s. Read it if you want the "under the hood" mechanics of SOAP rather than just a framework tutorial. 【Book Arc】 - **Opening (~0%–15%)**: Frames SOAP as the latest turn in distributed computing, introduces RPC vs. message-oriented models, self-describing data, XML, and the distinction between API specs and wire-level specs, then sets up Apache SOAP and GLUE as the running implementations. - **Early (~15%–35%)**: Moves from the SOAP Envelope (headers, body, faults, HTTP binding) into data encoding—namespaces, serialization rules, type indication, default values, and the SOAP root attribute—before tackling RPC-style services, deployment, and client writing. - **Middle (~35%–55%)**: Deepens the data problem: arrays, Java beans, custom types, and custom serialization/deserialization classes, then handles faults and exceptions across Apache SOAP and GLUE. - **Late (~55%–80%)**: Broadens beyond RPC into SOAP messaging, literal encoding, attachments, WSDL, and interoperability scenarios—GLUE-to-Apache, Apache-to-GLUE, .NET services, and an early Axis client. - **Ending (~80%–100%)**: Covers SOAP headers, provider/router replacement, intermediary routing services, and closes with JAX-RPC and JAXM, including service/client creation, WSDL stub generation, and dynamic invocation. 【Key Takeaways】 - **SOAP is a wire-level protocol, not just an API** (Early): The book separates API specs from wire-level specs, which matters because interoperability problems live at the wire level, not in your Java code. - **Encoding is the hard part of SOAP development** (Early): Namespaces, serialization rules, type indication, and default values determine whether your data survives the trip between platforms. - **Complex types require deliberate mapping** (Middle): Arrays, Java beans, and custom types need explicit serialization/deserialization classes; the book treats this as a core skill, not an edge case. - **Faults are the SOAP counterpart to Java exceptions** (Middle): Understanding how server-side exceptions become SOAP Faults—and how to extend them—is essential for debuggable services. - **RPC is only one style** (Late): Message-style services, literal XML payloads, and attachments offer alternatives when RPC semantics don't fit. - **Interoperability is the real test** (Late): Calling GLUE from Apache SOAP, Apache SOAP from GLUE, and .NET services from Java exposes the gaps that single-platform tutorials hide. - **SOAP headers enable routing and out-of-band data** (Ending): Replacing provider/router classes lets you build intermediary services that inspect and forward messages. - **The API landscape was shifting under developers' feet** (Ending): Apache SOAP 2.0, GLUE, Axis, JAX-RPC, and JAXM coexist, and the book prepares you for migration rather than betting on one stack. 【Reading Tips】 - Read Chapters 1–3 carefully if you're new to SOAP; the envelope and encoding chapters are the foundation for everything later. - Skim the deployment and client-writing walkthroughs in Chapter 4 if you already know Apache SOAP; focus instead on the parameter-passing and scope details. - Treat Chapters 5–6 as the deep-read core: custom types and serialization are where most real-world failures occur. - Use Chapter 9 as an interoperability checklist when connecting Java to .NET or mixing GLUE and Apache SOAP. - Read Chapter 11 with the understanding that JAX-RPC and JAXM were early releases; extract the concepts, not the exact APIs. 【Coverage Limits】 The excerpts cover the book's structure, chapter topics, and introductory framing, but do not include detailed code examples or the full text of later chapters. Specific implementation details beyond the chapter summaries are not available in the source material.
Page 2
ting, and a preview of the forthcoming AXIS APIs and server. If you're a Java developer who would like to start working with SOAP, this is the book you need...
View in text
Page 4
AP Client ........................................... 179 9.3 A Proxy Service Using Apache SOAP ................................................................
View in text
Excerpt 3
niques for generating and extending the contents of Faults. Java and SOAP 4 Chapter 8 This chapter starts out by describing the use of SOAP message-style ser...
View in text
Page 11
in distributed software is the remote procedure call (RPC). One reason for the popularity of RPC systems is that they closely resemble the function/method ca...
View in text
Page 13
t is "marked-up" with instructions for its own presentation. This is very nice, and it obviously has gained an incredible level of industry acceptance. But H...
View in text
Page 15
particularly tied to SOAP, but it does work well in Tomcat. The use of Tomcat has no real impact on the examples in the book, so you can feel free to select...
View in text
Page 18
uest The first SOAP message we'll look at is an RPC request. Although it's rather simple, it contains all of the elements required for a fully compliant SOAP...
View in text
Page 20
equest and get the response as part of a single transaction. Let's change the original request message so that the scale reads as follows: <m:scale>Calcium</...
View in text
Tags
AI categories
Programming LanguageJavaWeb Technology
ISBN: 0596001754
Publisher: O'Reilly
Publish Year: 2002
Language: English
Pages: 230
File Format: PDF
File Size: 2.7 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…