第 39 章 Zend_XmlRpc

目录

39.1. 介绍
39.2. Zend_XmlRpc_Client
39.2.1. 介绍
39.2.2. 带参数
39.2.2.1. 以PHP本地变量的形式传递参数
39.2.2.2. 以Zend_XmlRpc_Value 对象的形式传递参数
39.2.2.3. 将一个XML字符串解析为XML-RPC参数
39.2.3. 参数类型提示
39.2.4. 获取响应
39.3. Zend_XmlRpc_Server
39.3.1. Introduction
39.3.2. Basic Usage
39.3.3. Server Structure
39.3.4. Conventions
39.3.5. Utilizing Namespaces
39.3.6. Custom Request Objects
39.3.7. Custom Responses
39.3.8. Handling Exceptions via Faults
39.3.9. Caching Server Definitions Between Requests
39.3.10. Usage Examples
39.3.10.1. Basic Usage
39.3.10.2. Attaching a class
39.3.10.3. Attaching several classes using namespaces
39.3.10.4. Specifying exceptions to use as valid fault responses
39.3.10.5. Utilizing a custom request object
39.3.10.6. Utilizing a custom response object
39.3.10.7. Cache server definitions between requests

39.1. 介绍

XML-RPC是一个用HTTP作为传输层协议用XML作为编码的远程过程调用(注:RPC 即Remote Procedure Calling的缩写)。 虽然XML-RPC被设计得尽可能简单,但也允许复杂数据结构的传输、处理和返回。(XML-RPC 主页)。

Zend构架实现了XML-RPC 客户端(并且随后将实现XML-RPC服务端)使XML-RPC用起来尽可能的简单,并且使XML-RPC和PHP5 的SOAP web service extension用法尽可能的相似。