Web Service vs WCF Service

后端 未结 6 1515
耶瑟儿~
耶瑟儿~ 2020-11-28 02:42

What is the difference between them?

When would I opt for one over the other?

6条回答
  •  臣服心动
    2020-11-28 03:10

    Web Service is based on SOAP and return data in XML form. It support only HTTP protocol. It is not open source but can be consumed by any client that understands xml. It can be hosted only on IIS.

    WCF is also based on SOAP and return data in XML form. It is the evolution of the web service(ASMX) and support various protocols like TCP, HTTP, HTTPS, Named Pipes, MSMQ. The main issue with WCF is, its tedious and extensive configuration. It is not open source but can be consumed by any client that understands xml. It can be hosted with in the applicaion or on IIS or using window service.

提交回复
热议问题