difference between WCF Services and Web Services and REST Service

后端 未结 7 1072
栀梦
栀梦 2020-12-08 14:38

What is the difference between WCF Services and Web Services in .net
When should I use WCF and when to use Web Services.Is REST and WCF service the same? Thanks

相关标签:
7条回答
  • 2020-12-08 15:34

    WCF is multifaceted, so I'm going to speak of it with respect to its most common usage. The general difference between WCF and REST services is centered around the content. A REST call is usually more message/document/entity centered (With customer entities, find those starting with M; With order entities, get order 12 and is tied to the HTTP protocol. WCF tends to be more operation centered (Invoke find operation with params, Invoke get operation with parameters). WCF also isn't tied to HTTP.

    FYI, there are extensions to create REST based services using WCF (WebInvoke, WebGet attributes).

    0 讨论(0)
提交回复
热议问题