Java Web Services - O'Reilly (2002), work, e-books, od włodara, j2ee, webServices

[ Pobierz całość w formacie PDF ]
Java Web Services
David Chappell
Tyler Jewell
Publisher: O'Reilly
First Edition March 2002
ISBN: 0-596-00269-6, 276 pages
Java Web Services
shows you how to use SOAP to perform remote method calls and message
passing; how to use WSDL to describe the interface to a web service or understand
the interface of someone else's service; and how to use UDDI to advertise (publish) and look
up services in each local or global registry. Java Web Services also discusses security issues,
interoperability issues, integration with other Java enterprise technologies like EJB; the work
being done on the JAXM and JAX-RPC packages, and integration with Microsoft's .NET
services.
Table of Contents
Preface
.....................................................
Who Should Read This Book?
.....................................
Organization
.................................................
Software and Versions
..........................................
Conventions
.................................................
Comments and Questions
........................................
Acknowledgments
.............................................
1
1
2
3
4
4
5
1. Welcome to Web Services
.......................................
1.1 What Are Web Services?
......................................
1.2 Web Services Adoption Factors
..................................
1.3 Web Services in a J2EE Environment
..............................
1.4 What This Book Discusses
.....................................
6
6
11
14
15
2. Inside the Composite Computing Model
............................
2.1 Service-Oriented Architecture
...................................
2.2 The P2P Model
............................................
17
17
26
3. SOAP: The Cornerstone of Interoperability
..........................
3.1 Simple
..................................................
3.2 Object
..................................................
3.3 Access
..................................................
3.4 Protocol
.................................................
3.5 Anatomy of a SOAP Message
...................................
3.6 Sending and Receiving SOAP Messages
............................
3.7 The Apache SOAP Routing Service
...............................
3.8 SOAP with Attachments
......................................
28
28
29
29
30
30
34
46
50
4. SOAP-RPC, SOAP-Faults, and Misunderstandings
.....................
4.1 SOAP-RPC
...............................................
4.2 Error Handling with SOAP Faults
................................
4.3 SOAP Intermediaries and Actors
.................................
55
55
63
69
5. Web Services Description Language
...............................
5.1 Introduction to WSDL
........................................
5.2 Anatomy of a WSDL Document
.................................
5.3 Best Practices, Makes Perfect
...................................
5.4 Where Is All the Java?
........................................
72
72
73
94
95
6. UDDI: Universal Description, Discovery, and Integration
................
6.1 UDDI Overview
............................................
6.2 UDDI Specifications and Java-Based APIs
..........................
6.3 Programming UDDI
.........................................
6.4 Using WSDL Definitions with UDDI
..............................
96
96
99
101
135
7. JAX-RPC and JAXM
.........................................
7.1 Java API for XML Messaging (JAXM)
.............................
7.2 JAX-RPC
................................................
7.3 SOAPElement API
..........................................
7.4 JAX-RPC Client Invocation Models
...............................
138
138
157
161
162
8. J2EE and Web Services
........................................
8.1 The SOAP-J2EE Way
........................................
8.2 The Java Web Service (JWS) Standard
.............................
169
169
183
9. Web Services Interoperability
....................................
9.1 The Concept of Interoperability
..................................
9.2 The Good, Bad, and Ugly of Interoperability
.........................
9.3 Potential Interoperability Issues
..................................
9.4 SOAPBuilders Interoperability
..................................
9.5 Other Interoperability Resources
.................................
9.6 Resources
................................................
186
186
186
198
200
223
225
10. Web Services Security
........................................
10.1 Incorporating Security Within XML
..............................
10.2 XML Digital Signatures
......................................
10.3 XML Encryption
..........................................
10.4 SOAP Security Extensions
....................................
10.5 Further Reading
...........................................
227
227
228
233
239
241
A. Credits
...................................................
243
Colophon
....................................................
245
Java Web Services
Preface
When XML was first introduced, it was hailed as the cornerstone of a new kind of technology
that would permit interoperable businesses. XML provided a generic way to represent
structured and typed data. Even though it has taken several years, XML standards have started
to evolve and multiply. As part of this evolution, XML has been incorporated into every facet
of application and enterprise development. XML is now a part of operating systems,
networking protocols, programming languages, databases, application servers, web servers,
and so on. XML is used everywhere.
Starting in 1998, XML was incorporated into a number of networking protocols with the
intention of providing a standard way for two pieces of software to communicate with each
other. The Simple Object Access Protocol (SOAP) and XML-RPC specifications blew the
doors wide open on the distributed-computing environment by providing a platform-
independent way for software to communicate. Even more astounding, nearly every major
software company supported SOAP. The instant success of SOAP created the potential for
interoperability at a level that has never been seen before. SOAP became the cornerstone
protocol of the web services revolution that is going on today.
After SOAP, the Web Services Description Language (WSDL) and Universal Discovery,
Description, Integration (UDDI) specifications were introduced with an equal amount of
industry support. Other specifications were rapidly introduced, including ebXML, OASIS
technical communities, and a variety of SOAP extensions. Some specifications were met with
acclaim and others with disappointment. Either way, the industry has unified around SOAP,
WSDL, and UDDI. These core technologies are required to achieve true software
interoperability for the future.
It was only a matter of time before developers wanted to use web services technology. Even
though web services are language and platform independent, developers still have to develop
programs in programming languages. With Java and J2EE being the primary environment for
enterprise development, it wasn't long before technology used to integrate web services with
the J2EE platform appeared. Java programs need to be able to create, locate, and consume
web services.
Many specifications and technologies have been introduced to bridge the gap between Java
and web services. This book provides an introduction to both web services and the Java
technologies that have been introduced to support web services. It highlights major web
services technologies and investigates the current happenings in the Java standardization
community. As the web services revolution continues, it will be increasingly important for
software developers to understand how web services work and when to use them. Reading
this book may be one of the smartest career moves you will ever make.
Who Should Read This Book?
This book explains and demonstrates the fundamentals of web services and the Java
technologies built around web services. It provides a straightforward, no-nonsense
explanation of the underlying technology, Java classes and interfaces, programming models,
and various implementations.
1
[ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • red-hacjenda.opx.pl