简体   繁体   English

是 Web 服务还是 REST API 或普通网站

[英]Is it a web service or REST API or a normal website

I'm supporting an existing product.我支持现有产品。 It was developed with ASP.NET.它是用 ASP.NET 开发的。 The entire product has two parts整个产品分为两部分

Main Website - The main website where the user perform activities主网站 - 用户执行活动的主网站

Subscriber module - It is a separate website.订户模块 - 这是一个单独的网站。 Another windows application can post XML to the website and this website will save the data to the database.另一个 Windows 应用程序可以将 XML 发布到该网站,该网站会将数据保存到数据库中。 So it purpose is to transfer data between windows application and the main website.所以它的目的是在windows应用程序和主网站之间传输数据。 This website has one URL exposed to post the data.该网站公开了一个用于发布数据的 URL。 This one has only one ashx file and the functionalities are implemented using HTTP modules of ASP>NET这个只有一个ashx文件,功能是使用ASP>NET的HTTP模块实现的

My question is subscriber module doesn't have any asmx file or WCF implementation.我的问题是订阅者模块没有任何 asmx 文件或 WCF 实现。 However any one who has the URL can post XML to this website.但是,任何拥有 URL 的人都可以将 XML 发布到该网站。 So is it correct to call it as web service or API(not technically but semantically)?那么将其称为 Web 服务或 API(不是技术上而是语义上)是否正确? Or is it a simple website with some special functionality?或者它是一个具有一些特殊功能的简单网站?

An ASHX file is a webpage that is part of an ASP.NET web server application. ASHX 文件是一个网页,它是 ASP.NET Web 服务器应用程序的一部分。

Ashx files are used for handling Http Requests and modifying Http Responses; Ashx 文件用于处理 Http 请求和修改 Http 响应; It contains references to other pages hosted on the web server that are sent to the user's web browser.它包含对 Web 服务器上托管的其他页面的引用,这些页面发送到用户的 Web 浏览器。 ASHX files are processed by the server's ASP.NET HTTP Handler when a client web browser requests the page.当客户端 Web 浏览器请求页面时,服务器的 ASP.NET HTTP 处理程序会处理 ASHX 文件。

  1. Main Website - Its a Web Application主网站 - 它是一个 Web 应用程序
  2. Windows Application - Posting data to server Windows 应用程序 - 将数据发布到服务器

A web service is any piece of software that makes itself available over the internet and uses a standardized XML messaging system. Web 服务是可以通过 Internet 访问并使用标准化 XML 消息传递系统的任何软件。 The function of your subscriber module implements is to post XML to website, it is in line with the characteristics of web service applications.您的订阅者模块实现的功能是将 XML 发布到网站,这符合 Web 服务应用程序的特点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM