Web Application 與 Web Service 有什麼差別呢?

Web Applications 主要使用對象是人,用戶可以透過網路訪問 Web application,通過瀏覽器訪問的任何軟體/線上服務都可以稱為 Web application。

Web services 主要使用對象是其他程式/程序,是指通過某種 Web 界面以任何格式(XML/JSON 等)提供數據的程式,該接口可以稱為API(應用程序編程接口)。通常 Web service 開發者會遵循 REST 和 SOAP 甚至 GraphQL 等設計 API 的規範來設計 API。

Web Service 可用於在 Web Application 之間傳輸數據。

以下提供比較表說明

Web Service 和 Web Application 的詳細比較

  • Web Service 可以使用不同語言或不同平台訪問
  • Web Application 是具有圖形用戶界面 (GUI) 的完整應用程序,但是 Web Service 不一定具有用戶界面,它與其他 Web services 和 Web applications 互動,幫助不同來源的 Web services 和 Web applications 在不共享重要數據的情況下相互交互。
  • 一般來說,Web Application 同時運行在客戶端以及伺服器(Server)環境中,客戶端在瀏覽器的幫助下運行它,服務器根據客戶端請求處理數據並提供響應。而 Web Service 一般只在服務器上運行,透過 API 來提供外界服務。

例如

- 使用 PHP 開發 index.php,放在 Apache 服務器上,讓其他人可以用 IP 或網址訪問,就是 Web Application

- 使用 PHP 開發如 114.11.222.333:8000/api/read.php,讓其他人可以使用 Postman 或程式,用 GET/POST/DELET 等 REST API 方法訪問,就是 Web Service 

PHP 範例

推薦閱讀

Shopify allows merchants to accept bitcoin payments, how does this benefit brands?
Shopify allows merchants to accept bitcoin payments, how does this benefit brands?
What is Bitcoin? Bitcoin is the first virtual currency (also known as cryptocurrency) to be launched, and it is curr...
繼續閱讀
How much will it cost to build an online store/official website with Shopify in 2022? Hidden costs? General arrangement of store opening costs (Part 1)
How much will it cost to build an online store/official website with Shopify in 2022? Hidden costs? General arrangement of store opening costs (Part 1)
This year, many Taiwanese e-commerce brands want to use Shopify to build their website. Shopify is well-known for its...
繼續閱讀
Key Sharing Package: 2021 Taiwanese Enterprise Cross-border Key Report Presentation - Trade Data
Key Sharing Package: 2021 Taiwanese Enterprise Cross-border Key Report Presentation - Trade Data
Insight into overseas potential markets If you have a cross-border digital e-commerce, platform or business, learning...
繼續閱讀

leave a message

Please note that comments must be reviewed before they are published