Programming Web Services with XML-RPC. Creating Web Application Gateways - Helion
ISBN: 978-14-919-4647-3
stron: 236, Format: ebook
Data wydania: 2001-06-21
Księgarnia: Helion
Cena książki: 109,65 zł (poprzednio: 127,50 zł)
Oszczędzasz: 14% (-17,85 zł)
Have you ever needed to share processing between two or more computers running programs written in different languages on different operating systems? Or have you ever wanted to publish information on the Web so that programs other than browsers could work with it? XML-RPC, a system for remote procedure calls built on XML and the ubiquitous HTTP protocol, is the solution you've been looking for.Programming Web Services with XML-RPC introduces the simple but powerful capabilities of XML-RPC, which lets you connect programs running on different computers with a minimum of fuss, by wrapping procedure calls in XML and establishing simple pathways for calling functions. With XML-RPC, Java programs can talk to Perl scripts, which can talk to Python programs, ASP applications, and so on. You can provide access to procedure calls without having to worry about the system on the other end, so it's easy to create services that are available on the Web.XML-RPC isn't the only solution for web services; the Simple Object Access Protocol (SOAP) is another much-hyped protocol for implementing web services. While XML-RPC provides fewer capabilities than SOAP, it also has far fewer interoperability problems and its capabilities and limitations are much better understood. XML-RPC is also stable, with over 30 implementations on a wide variety of platforms, so you can start doing real work with it immediately.Programming Web Services with XML-RPC covers the details of five XML-RPC implementations, so you can get started developing distributed applications in Java, Perl, Python, ASP, or PHP. The chapters on these implementations contain code examples that you can use as the basis for your own work. This book also provides in-depth coverage of the XML-RPC specification, which is helpful for low-level debugging of XML-RPC clients and servers. And if you want to build your own XML-RPC implementation for another environment, the detailed explanations in this book will serve as a foundation for that work.
Osoby które kupowały "Programming Web Services with XML-RPC. Creating Web Application Gateways", wybierały także:
- Język XML. Kurs video. Poziom pierwszy. Tworzenie struktury dokumentów XML 69,00 zł, (20,70 zł -70%)
- Flash i Wallaby. Projektowanie animacji zgodnych z HTML5 24,69 zł, (7,90 zł -68%)
- API nowoczesnej strony WWW. Usługi sieciowe w PHP 32,90 zł, (16,45 zł -50%)
- XML. Szybki start. Wydanie II 49,00 zł, (24,50 zł -50%)
- XML. Tworzenie stron WWW z wykorzystaniem XML, CSS, XHTML oraz XSLT. Niebieski podręcznik 49,00 zł, (24,50 zł -50%)
Spis treści
Programming Web Services with XML-RPC. Creating Web Application Gateways eBook -- spis treści
- Programming Web Services with XML-RPC
- A Note Regarding Supplemental Files
- Foreword
- Preface
- Audience
- Organization
- Conventions Used in This Book
- Using Code Examples
- How to Contact Us
- Acknowledgments
- Simon St.Laurents Acknowledgements
- Joe Johnstons Acknowledgments
- Edd Dumbills Acknowledgments
- 1. Introduction
- What XML-RPC Does
- Remote Procedure Calls (RPC)
- Letting Computers Talk: XML and the Web
- Reusing Web Protocols and Infrastructure
- Building a Different Kind of Web
- Where XML-RPC Excels
- A Quick Tour of the Minefields
- RPC Issues
- Protocol Reuse Issues
- HTTP isnt very efficient
- XML-RPC isnt your average web page
- Breaking through firewalls by reusing HTTP
- What XML-RPC Does
- 2. The XML-RPC Protocol
- Choreography
- Synchronous
- Stateless
- Data Types
- Simple Data Types
- Integers
- Floating-point numbers
- Boolean values
- Strings
- Date-times
- Binary
- Compound Data Types
- Arrays
- Structs
- Simple Data Types
- Request Format
- XML Payload
- Parameters
- Method naming
- HTTP Headers
- POST
- Host
- Content-Type
- Content-Length
- User-Agent
- Using other headers
- A Complete Request
- XML Payload
- Response Format
- Method Result
- Fault Reporting
- HTTP Headers
- HTTP response code
- Server
- Content-Type
- Content-Length
- A Complete Response
- The Nil Value
- A DTD for XML-RPC
- Choreography
- 3. Client-Server Communication: XML-RPC in Java
- Why XML-RPC for Java?
- The XML-RPC Java Library
- Installing the helma.xmlrpc Library
- General XML-RPC Library Configuration
- Data Types and Java XML-RPC
- Building XML-RPC Clients
- Building XML-RPC Servers
- Using the WebServer Class
- Using XmlRpcServer Without WebServer
- Creating XML-RPC Handlers
- Creating Handlers Using Automatic Registration
- Creating Handlers Using Explicit Registration
- Three Practical Examples
- Library Functions
- Reporting
- A get and set Approach
- Moving Toward Cross-Platform Peer-to-Peer
- 4. XML-RPC and Perl
- Perls Implementation of XML-RPC
- Data Types
- Translating Perl Values to XML-RPC Elements
- Packaging Scalar Values
- Preparing Date-Time Data
- Preparing Encoded Binary Data
- Using Helper Methods to Create Objects
- Preparing Array and Hash Data
- Translating XML-RPC Elements to Perl Values
- Extracting Values from Objects
- Determining the Type of Object
- XML-RPC Clients
- Client Architecture
- Invoking a Remote Procedure
- Creating the client object
- Calling the XML-RPC method
- Getting the response to the call
- Handling error responses
- A Client Script
- XML-RPC Servers
- Server Architecture
- Setting Up an XML-RPC Server
- A Server Script
- Integrating XML-RPC into a Web Server
- 5. Integrating Web Applications: XML-RPC in PHP
- Getting the XML-RPC Library for PHP
- Understanding the Client Classes
- Mapping Data Between PHP and XML-RPC
- Getting PHP Data into XML-RPC Tags
- Turning XML-RPC Data Back into PHP
- Shortcuts to Encoding and Decoding XML-RPC Values
- Invoking Methods
- Preparing a Client Object
- Preparing a Method Invocation and Its Parameters
- Invoking the Method
- Checking the Result
- Handling XML-RPC Error Conditions
- Building XML-RPC Servers in PHP
- Methods
- Service Descriptions
- Servicing a Request
- Introspection
- Connecting Web Applications
- Creating a Discussion Server
- Meerkat: OReillys Technology Database
- Joining Meerkat and the Discussion Server
- A Closer Look at the Meerkat Discussion Server
- What PHP and XML-RPC Can Do
- 6. XML-RPC and Python
- Python Implementations of XML-RPC
- Installing PythonWare XML-RPC
- Data Types
- Python Data and XML Elements
- Data types that require no extra work
- Data types that must be wrapped in an object
- Boolean data
- Date-time data
- Binary data
- Python Data and XML Elements
- XML-RPC Clients
- Client Architecture
- A Client Script
- XML-RPC Servers
- Setting Up an XML-RPC Server
- Creating a copy of the script
- Setting a port number
- Recoding the call( ) method to define the API
- Creating a hierarchical API
- Creating dispatch functions to implement the API
- Processing the argument list
- Returning a value
- Returning a fault value
- Running the server script
- A Server Script
- Setting Up an XML-RPC Server
- Integrating XML-RPC into a Web Server
- Using Zope as an XML-RPC Server
- 7. Bridging XML-RPC and COM: XML-RPC in ASP
- Using XML-RPC with ASP
- Making Active Server Pages More Active
- From Person-to-Computer to Computer-to-Computer
- Treating ASP as a Window into Your System
- Data Types and the API
- Building an Address Book Web Service with ASP
- Getting the Contents of the Address Book
- Looking up Entries in the Address Book
- Adding and Removing Address Book Entries
- Talking to MS Access from Linux
- An XML-RPC Client in ASP
- Creating a Window to Linux
- Connections and Caveats
- No Transaction Support
- Expect Speed Hits
- Debugging is Terrible
- Keep the API Current
- Where to Find the VBScript XML-RPC Library
- Where to Find the COM XML-RPC Library
- 8. XML-RPC and the Web Services Landscape
- The Web Services Vision
- Public XML-RPC Services
- Design Considerations for Any XML-RPC Application
- Debugging
- Network Latency
- Documentation
- Logging
- Authentication and Authorization
- Payloads: Big and Secret
- Statelessness
- Beyond XML-RPC
- SOAP: Simple Object Access Protocol
- UDDI: Universal Description, Discovery, and Integration of Business for the Web
- WSDL: Web Services Description Language
- W3C XML Protocol Activity
- BXXP: Blocks eXtensible eXchange Protocol
- Protocol Design Choices
- XML-RPC and Web Services
- A. The XML You Need for XML-RPC
- What is XML?
- Anatomy of an XML Document
- Elements and Attributes
- Name Syntax
- Well-Formed
- Comments
- Entity References
- Character References
- Character Encodings
- Unicode Encoding Schemes
- Other Character Encodings
- Validity
- Document Type Definitions (DTDs)
- Element type declarations
- Attribute list declarations
- Putting It Together
- Document Type Definitions (DTDs)
- Tools for Processing XML
- Selecting a Parser
- XSLT Processors
- Is That All There Is?
- B. The HTTP You Need for XML-RPC
- A Bit About TCP/IP
- HTTP at the Start of the Web
- Adding Two-Way Communications
- A Richer Set of Headers
- POST: the Key to XML-RPC
- Making Two-Way Communications Efficient
- Making the Infrastructure Do Something Different
- Infrastructure Details
- MIME Types
- HTTPS, VPNs, and Other Security Measures
- Things XML-RPC Leaves Out
- Index
- About the Authors
- Colophon
- Copyright