Download PDF Your requested download is ready! Click
WCF (Windows Communication Foundation): It is a framework used for developing SOAP (Service-oriented applications). This framework is used for developing, configuring, and deploying, or implementing network-distributed services. Web API: It is an application programming interface for both web browsers and web servers. Browser API simply extends or increases the functionality of web browsers whereas Server API simply extends or increases the functionality of web server.
|It is used to develop both SOAP-based services and RESTful services.||It is used to deploy only SOAP-based services.|
|It supports various MVC features such as routing, model binding, etc.||It does not support any MVC features.|
|It only supports HTTP protocol.||It supports various protocols such as HTTP, UDP, custom transport.|
|It is considered best for developing RESTFUL services.||It supports only limited RESTFUL services.|
|It is good when one wants to expose an expensive range of clients such as iPhones, browsers, mobile phones, tablets, etc.||It is good for creating services that uses expedite transport channels such as TCP, UDP, Named pipes, etc.|
|It offers support for UTF-8 encoding format.||It offers TEXT, Binary encoding support, MTOM (Message Transmission Optimization Mechanism), etc.|
What are the main return types supported in Web API?
It does not have any specific data type. It can return data of any type depending upon the business requirement. There are many HTTP methods like GET, POST, PUT, etc., which can return data in different formats depending upon the use case.
1 What is XML and JSON?
XML (Extensible Markup Language):
3 What is HttpConfiguration in Web API?
It is considered as the main class that includes different properties with help of which one can override the default behavior of Web API. Some properties are given below:
2 What are new features used in ASP.NET Web API 2.0
ASP.NET Web API includes a number of new exciting features as given below:
3 What is the use of DelegatingHandler?
DelegatingHandler is used to develop a custom Server-Side HTTP Message Handler in ASP.NET Web API. It is used to represent Message Handlers before routing in Web API.
2 What do you mean by Caching and What are its types?
Caching is basically a technique or process of storing data somewhere or in the cache for future requests. The cache is a temporary storage area. Caching keeps all frequently or recently accessed files or data in the cache memory and accesses them from the cache itself rather than actual address of data or files. The cache interface simply improves the storage mechanism for request/response object pairs that are being cached.Advantages of Caching:
Types of Caching: There are basically three types of caching as given below: