网站与网络服务 [英] Websites vs Webservices

查看:27
本文介绍了网站与网络服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用文字来区分网站和 Web 服务(无论是基于 RPC 的还是基于 RESTful 的)开发.我是说当客户端是另一个软件时(假设浏览器只是原始客户端的工具)并且生产者以 XML 响应(假设这是数据传输的标准)属于 Web 服务(可编程 Web),否则它是一个人类网站?

I was trying to put the difference between websites and web services (irrespective of RPC based or RESTful) development in words. Am I right is saying when a client is another software (assuming browser is just a tool for the original client) and producer is responding in XML (assuming this is the standard for data transportation) comes under web services (programmable web) otherwise its a website for humans?

谢谢

-阿比迪

推荐答案

是的.人们可以进一步明确,机器人和爬虫是软件试图模仿人类行为的次要现象.所以你的高水平的区别仍然存在.

Yes. One could further precise that bots and crawlers are a secondary phenomenon where software attempts to mimic human behaviour. So that your high level distinction still stands.

巨大的不同在于网站具有双重作用

The huge difference is that web sites have a double role

  1. 提供信息
  2. 介绍信息

而对于 Web 服务,则没有表示的概念.您会在它们各自的表达语言中发现同样的区别:HTML 累积信息标记和表示指令,而 xml 仅涉及信息识别、组织、转换和组织.

Whereas for web services, there is no concept of presentation. You will find this same distinction in their respective expression languages: whereas HTML cumulates both information tagging and presentation directives, xml is only about information identification, organisation, transformation and organisation.

历史上 XML 紧随 HTML 之后,人们发现有更好的方法来访问网站公开的信息,而不仅仅是翻录其格式不正确的 html 页面或多或少地模仿人类;同时,每个人都知道 CORBA 和 RPC 都无法满足 B2B 通信的需求,因为它们无法通过 WAN 进行路由.

Historically XML followed in the wake of HTML when people figured out that there were better ways to access information exposed by web sites than just ripping their not well formed html pages more or less aping humans; whilst at the same time everybody knew that neither CORBA nor RPC could fill the need for B2B communication because of their unability to be routed through a WAN.

因此,SOAP、所有 OASIS 标准以及后来的 REST 服务仍然首选用于太轻"而无法容纳成熟的 SOAP 堆栈的设备.

Hence then, SOAP, all the OASIS standards and only later REST services, still preferred for devices too 'light' to accommodate full fledged SOAP stacks.

这篇关于网站与网络服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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