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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 花垣县| 白山市| 江安县| 衢州市| 任丘市| 兴隆县| 崇礼县| 庆安县| 五指山市| 安远县| 景洪市| 五大连池市| 咸丰县| 商河县| 昭通市| 江口县| 枞阳县| 昌图县| 龙江县| 尚志市| 麻江县| 灵璧县| 安龙县| 双江| 瑞昌市| 盐亭县| 大竹县| 德庆县| 邹平县| 邵阳县| 昌都县| 白河县| 江孜县| 建瓯市| 哈尔滨市| 环江| 青岛市| 海宁市| 衡阳县| 临武县| 福泉市|