国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

WCF、Web API、WCF REST、Web Service 區別

2019-11-17 03:06:01
字體:
來源:轉載
供稿:網友

WCF、Web API、WCF REST、Web Service 區別

Web Service

  1. It is based on SOAP and return data in xml form.

  2. It support only HTTP PRotocol.

  3. It is not open source but can be consumed by any client that understands xml.

  4. It can be hosted only on IIS.

WCF

  1. It is also based on SOAP and return data in XML form.

  2. It is the evolution of the web service(ASMX) and support various protocols like TCP, HTTP, HTTPS, Named Pipes, MSMQ.

  3. The main issue with WCF is, its tedious and extensive configuration.

  4. It is not open source but can be consumed by any client that understands xml.

  5. It can be hosted with in the applicaion or on IIS or using window service.

WCF Rest

  1. To use WCF as WCFRest serviceyou have to enable webHttpBindings.

  2. It support HTTP GET and POST verbs by [WebGet] and [WebInvoke] attributes respectively.

  3. To enable other HTTP verbs you have to do some configuration in IIS to accept request of that particular verb on .svc files

  4. Passing data through parameters using a WebGet needs configuration. The UriTemplate must be specified

  5. It support XML, JSON and ATOM data format.

Web API

  1. This is the new framework for building HTTP services with easy and simple way.

  2. Web API is open source an ideal platform for building REST-ful services over the .NET Framework.

  3. Unlike WCF Rest service, it use the full featues of HTTP (like URIs, request/response headers, caching, versioning, various content formats)

  4. It also supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection, unit testing that makes it more simple and robust.

  5. It can be hosted with in the application or on IIS.

  6. It is light weight architecture and good for devices which have limited bandwidth like smart phones.

  7. Responses are formatted by Web API’s MediaTypeFormatter into

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 手游| 南宁市| 黑龙江省| 郎溪县| 五家渠市| 金塔县| 景德镇市| 那曲县| 独山县| 通河县| 黑河市| 安吉县| 邯郸市| 汾阳市| 肥东县| 绥德县| 桐柏县| 清徐县| 东方市| 建平县| 师宗县| 平陆县| 库伦旗| 荔浦县| 鄯善县| 成安县| 河西区| 乌恰县| 曲阜市| 政和县| 章丘市| 奉化市| 宜春市| 大足县| 沙坪坝区| 日照市| 皮山县| 景泰县| 清徐县| 英吉沙县| 威宁|