具象状态传输 (REST) 和简单对象访问协议 (SOAP) [英] Representational state transfer (REST) and Simple Object Access Protocol (SOAP)

查看:25
本文介绍了具象状态传输 (REST) 和简单对象访问协议 (SOAP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能解释一下什么是 REST 以及什么是 SOAP 纯英文?以及 Web 服务如何工作?

Can somebody explain what is REST and what is SOAP in plain english? And how Web Services work?

推荐答案

关于 SOAP 和 REST 的简单说明

SOAP - 简单对象访问协议"

SOAP 是一种通过 Internet 传输消息或少量信息的方法.SOAP 消息采用 XML 格式,通常使用 HTTP(超文本传输​​协议)发送.

SOAP is a method of transferring messages, or small amounts of information, over the Internet. SOAP messages are formatted in XML and are typically sent using HTTP (hypertext transfer protocol).

Rest - 代表性状态转移

Rest 是一种在客户端和服务器之间发送和接收数据的简单方法,它没有定义很多标准.您可以以 JSON、XML 甚至纯文本形式发送和接收数据.与 SOAP 相比,它的权重很轻.

Rest is a simple way of sending and receiving data between client and server and it doesn't have very many standards defined. You can send and receive data as JSON, XML or even plain text. It's light weighted compared to SOAP.

这篇关于具象状态传输 (REST) 和简单对象访问协议 (SOAP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆