XML technologies / XML / Python & XML / Python, web services and SOAP
(Excerpt from “Python & XML” by Christopher A. Jones & Fred L. Drake, Jr.)
The Internet has opened many eyes to the possibilities of readily accessible digital information. Once systems connect, why should an airline agent not email your hotel when your flight is 45 minutes late? Similarly, a GPS-equipped, Internet-enabled PDA should update directions automatically if overbooking forces you to change hotels. Web services let distributed systems communicate and exchange relevant information to trigger appropriate events, alerts and messages. Their promise extends beyond travelers and other end users: businesses gain interoperability with trading partners, automated transactions and closer integration of production and supply-chain systems. For individuals, connecting distributed information promises a seamless Web regardless of location or device. Understanding these implications explains the interest and enthusiasm around web services; understanding their technology gives you tools for more powerful, integrated, dynamic web applications.
Web services are distributed systems on the Web. In a rich portal, much content probably comes from sites communicating before presenting it to you. This is commonly called content syndication. The technology is emerging and has yet to settle. Server communication generally requires shared wire and transaction protocols. If the wire protocol encapsulates external data formats, those must be agreed too. These elements let one service, such as a credit bureau, talk to another, such as a financial website.
The Internet gave the world a shared wire protocol: Transmission Control Protocol/Internet Protocol (TCP/IP) became the shared Internet network protocol. Applications rely on it for higher-level, file-like communication. While you may open a socket to an HTTP server, the network subsystems actually use TCP/IP to deliver your bitstream. Above TCP/IP sits Hypertext Transport Protocol (HTTP), then Simple Object Access Protocol (SOAP). SOAP can use other transports, but HTTP’s ubiquity and ease with firewalls make it the obvious choice. SOAP is more a transaction protocol providing request-response semantics. Its XML encoding of data values also gives a common format easily exchanged between systems.
Most analysts consider these technologies, combined with supporting partners such as Web Services Description Language (WSDL) and Universal Discovery, Description, and Integration (UDDI), to constitute web services, though alternatives are also used.
Copyright © 2002 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “Python & XML” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top