更多>
最新下载
24小时阅读排行榜
- 1 如何在 Angular 中为选中状态的复选框自定义背景色
- 2 使用 Go 语言集成 Azure AD 实现单点登录(SSO)完整指南
- 3 Linux 从被动救火到主动运维的转变
- 4 initramfs 重建后仍进不了系统的 --force --add-drivers 组合使用
- 5 Linux 出现 "nf_conntrack: table full, dropping packet" 如何秒级缓解并永久调优
- 6 Linux 孤儿进程为何不会拖垮系统
- 7 如何在 Go 结构体中正确存储 Unicode 字符串
- 8 如何在 PHP 中正确判断多个输入字段是否为空并据此生成数据库插入值
- 9 Linux 系统重启后配置丢失的根因
- 10 Linux OOM Killer 的触发条件与应对策略
- 11 Linux 启动服务过多对性能的影响
- 12 SQL 如何用窗口函数 SUM() OVER 实现跨行累计求和而不溢出
- 13 MySQL GROUP_CONCAT 的长度限制与 group_concat_max_len 调优
- 14 Linux 内核日志中常被忽略的重要信息
- 15 SQL 如何计算中位数(Median)的跨数据库写法
更多>
最新教程
-
- Node.js 教程
- 16449 2025-08-28
-
- CSS3 教程
- 1547266 2025-08-27
-
- Rust 教程
- 23542 2025-08-27
-
- Vue 教程
- 25946 2025-08-22
-
- PostgreSQL 教程
- 22451 2025-08-21
-
- Git 教程
- 9369 2025-08-21
下载首页 / 学习资料 / 网页制作
RPC-Style Architectures
An RPC-style web service accepts an envelope full of data from its client, and sends a
similar envelope back. The method and the scoping information are kept inside the
envelope, or on stickers applied to the envelope. What kind of envelope is not important
to my classification, but HTTP is a popular envelope format, since any web service
worthy of the name must use HTTP anyway. SOAP is another popular envelope format
(transmitting a SOAP document over HTTP puts the SOAP envelope inside an HTTP
envelope). Every RPC-style service defines a brand new vocabulary. Computer pro-
grams work this way as well: every time you write a program, you define functions with
different names. By contrast, all RESTful web services share a standard vocabulary of
HTTP methods. Every object in a RESTful service responds to the same basic interface.
The XML-RPC protocol for web services is the most obvious example of the RPC ar-
chitecture. XML-RPC is mostly a legacy protocol these days, but I’m going to start off
with it because it’s relatively simple and easy to explain. Example 1-11 shows a Ruby
client for an XML-RPC service that lets you look up anything with a Universal Product
An RPC-style web service accepts an envelope full of data from its client, and sends a
similar envelope back. The method and the scoping information are kept inside the
envelope, or on stickers applied to the envelope. What kind of envelope is not important
to my classification, but HTTP is a popular envelope format, since any web service
worthy of the name must use HTTP anyway. SOAP is another popular envelope format
(transmitting a SOAP document over HTTP puts the SOAP envelope inside an HTTP
envelope). Every RPC-style service defines a brand new vocabulary. Computer pro-
grams work this way as well: every time you write a program, you define functions with
different names. By contrast, all RESTful web services share a standard vocabulary of
HTTP methods. Every object in a RESTful service responds to the same basic interface.
The XML-RPC protocol for web services is the most obvious example of the RPC ar-
chitecture. XML-RPC is mostly a legacy protocol these days, but I’m going to start off
with it because it’s relatively simple and easy to explain. Example 1-11 shows a Ruby
client for an XML-RPC service that lets you look up anything with a Universal Product
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
