国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 浙江省| 环江| 西吉县| 兰坪| 普洱| 呼和浩特市| 横山县| 北宁市| 阜城县| 宁化县| 资兴市| 宝丰县| 辽中县| 虎林市| 泰兴市| 陵川县| 盈江县| 合水县| 洪泽县| 隆德县| 三河市| 玉林市| 洱源县| 芒康县| 阿克| 舒城县| 大邑县| 南华县| 赤水市| 县级市| 介休市| 嵩明县| 岳西县| 山西省| 微山县| 上犹县| 巫山县| 丹棱县| 同仁县| 金川县| 茂名市|