简单来说什么是Web服务 [英] What is Web services in simple terms

查看:31
本文介绍了简单来说什么是Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对什么是真正的网络服务有点困惑.你说 Amazone 网络服务等,他们提供信息.那么成为 Web 服务的 Web url 的要求是什么?假设我对 Web 开发不太熟悉,您如何向我解释?但如果你指出一些方法,我可以得到它.而且对于 SOAP 和 REST 也几乎没有,基本上是针对一个真正的新人

I am little bit confused about what really a web service is. You say Amazone web services,etc like that, they offer information. So what is the requirement to be a web url to be a web service ? Let's say I am not much familiar with web development, how could you explain it to me ? But I can get it if you point some ways. And also little about SOAP and REST basically for someone really new

推荐答案

什么是网络服务

事情很多.在编程中,in 一般是指一个网页,可以从应用程序(可以是另一个网页,或桌面应用程序)调用,调用者将向其传递数据,或从中接收数据.

It is many things. In programming, in generally refers to a web page, that can be called from an application (be it another web page, or desktop app), and the caller will pass in data to it, or receive data from it.

从这个意义上说,它基本上就像普通编程语言中的方法"或函数";除非你是通过互联网调用它.

In this sense, it's basically like a 'method' or 'function' in a normal programming language; except you're calling it over the internet.

SOAP

一种消息格式.如上所述,Web 服务基本上是一种方法"或功能".SOAP 是此方法的指令"和数据".它将概述数据类型,可能还有一堆数据.它是一种 XML 格式.

A message format. As discussed above, a web service is a basically a 'method' or 'function'. SOAP is the 'instructions' and 'data' to this method. It will outline data types, and possibly a bunch of data as well. It is an XML format.

休息

REST 是实现应用程序接口但是、实现访问控制和其他类似事情的方法,特别是使用 HTTP 响应代码.因此,如果您没有访问权限,您将收到 401: Denied(我认为这是正确的代码).还有其他类型的响应代码很有用.它还使用其他 HTTP 命令,如 PUT/HEAD/OPTIONS.

REST is the means of implementing an interface to your application but, implementing access control, and other such things, specifically with HTTP Response codes. So you will get a 401: Denied (I think that's the right code), if you don't have access. There are other types of response codes that are useful. It also makes use of other HTTP commands like PUT/HEAD/OPTIONS.

这篇关于简单来说什么是Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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