Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the benefits of using WCF?

Tags:

  1. We currently just utilize soap webservices for all our communication but have been thinking about moving to WCF instead. What are the benefits of using it over an asmx service?

  2. If we do go with a WCF service, can other languages still communicate with it? SOAP is standardized and all languages can interact with it.

  3. Are there any really good examples of how to get started with WCF that show the benefits of it over soap?

EDIT

  • I just found this question which is quite helpful.
  • The Getting Started Tutorial is great.
like image 568
sontek Avatar asked Nov 07 '08 05:11

sontek


People also ask

What is the benefit of Web API over WCF?

WEB API is a better choice for simpler, light weight services. WEB API can use any text format including XML and is faster than WCF. WEB API can be used to create full-blown REST Services. WEB API doesn't require any data contracts and doesn't require configurations to the level of WCF.

What are the main components of WCF?

WCF Service is composed of three components: Service class: It implements the service needed. Host environment: is an environment that hosts the developed service. Endpoints: are the connection points for the clients to connect to the service.

What's the difference between WCF and RESTful API?

WCF is used for developing SOAP-based services whereas Web API is used for both SOAP-based and RESTful services. WCF does not offer any support for MVC features whereas Web API supports MVC features. WCF supports HTTP, UDP, and custom transport protocol whereas Web API supports only HTTP protocol.

What is the difference between WCF and MVC?

WCF is an inter-process communication mechanism, which means it is used when several processes, either on the same machine or on different machines (client-server applications) need to talk to each other. MVC on the other hand, is a pattern that separates the UI from the back-end logic.


1 Answers

  1. There's a bit of a learning curve with WCF, but once you learn it it's no harder to implement than an asmx web services. One advantage is you can easily switch protocols and serialization from binary remoting all the way to web protocols. It's also easy to host either in IIS or out.

  2. Other languages can communicate with the web protocols. Binary, not so much...

  3. I just dug into the Getting Started Tutorial. It does a good job of showing the relative ease-of-use. From there, take a look at Hosting and more detailed Features.

like image 51
Corbin March Avatar answered Nov 12 '22 07:11

Corbin March