26. Web API
ASP.NET Web API (application
programming interface) 是一個架構,可
輕易建置 HTTP 服務並擴及廣大的用戶端
範圍,包括瀏覽器和行動裝置。
ASP.NET Web API 是一個想理平台,
以 .NET Framework 基礎建置 RESTful 應
用程式。
26
33. SOAP v.s. REST
SOAP is a protocol and REST is architecture
REST supports multi-message formats, but SOAP permits XML only.
REST services are faster and easy to handle.
SOAP is tied with SMTP & HTTP protocols whereas REST relies on
HTTP only.
SOAP is more secure and structured format.
REST don’t depend on any specific standards as it supports
various messaging formats like JSON, CSV and XML.
SOAP web services allow to build the client with RESTful services.
34. SOAP v.s. REST
SOAP was for distributed-computing.
After REST’s entry, it accommodated the web by its
performance and scalability as a light weight component.
REST is stateless whereas SOAP is a state-ful specification.
REST uses Uniform Resource Identifier (URI) and it has methods
like GET, PUT, POST and DELETE to expose their resources.
SOAP uses named operations and interfaces to achieve its
business logics.
資料來源 http://www.softwaretestinghelp.com/soapui-tutorial-13-soap-vs-rest-services/
34
40. Case Study
.NET (C# or VB)、工具 Visual Studio (free)
Server端的技術
Web Service
WCF Service
Web API
Client端的技術
JavaScript
jQuery
41. 我 Blog網站上的文章 與
範例下載
Web Service入門 #1,透過Visual Studio -- VS 2005/2008/2010 撰寫一
個Web Service(系列文章)
https://dotblogs.com.tw/mis2000lab/archive/2008/09/26/webservice_1.aspx
[入門範例] ASP.NET Web Service (asmx) 與 jQuery AJAX
https://dotblogs.com.tw/mis2000lab/archive/2015/05/19/jquery_ajax_web_service.aspx
Web API 超簡單入門 -- Your First ASP.NET Web API v1.0 #1 (C# / VB, 原
作:Mike Wasson)(系列文章)
https://dotblogs.com.tw/mis2000lab/2012/11/01/your_first_web_api_20121101_1