crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Difference between ASP.NET vs WCF
Question Posted on 06 May 2020Home >> Frameworks >> WCF >> Difference between ASP.NET vs WCF

Difference between ASP.NET vs WCF
Below are most important difference between ASP.NET and WCF
WCF
(1)To define WCF service ServiceContract and OperationContract attributes are used.
(2)WCF supports varioud protocols like HTTP, HTTPS, TCP, MSMQ and Named Pipes.
(3)We can host WCF application in 4 ways
(i)IIS
(ii)WAS
(iii)Self Hosting
(iv)Windows Service
(4)WCF is more securable then WebServices and also used for Messaging, Reliability and for transaction for AJAX and REST supports.
(5)We can serialize DataCOntract by using System.Runtime.Serialization.
(6)WCF supports different service operations like One-Way, Request-Response and Duplex service operations.
(7)WCF much faster then Web Services.
(8)Here in WCF HashTables can be serialized.
(9)WCF supports Multi-threading with the help of ServiceBehaviour class.
(10)Its supports encoding like XML,MTOM and Binary message encoding.
(11)WCF have better exception handling by using FaultContract. And will does return client the unHandled Exceptions.

ASP.NET
(1)We use WebService and WebMethod attributesfor defining Web Services.
(2)WebService will support only HTTP, HTTPS protocols.
(3)We can host this in IIS only.
(4)Secuirty is less secure as copared to WCF.
(5)Here we can have option like XML serializer by using System.XML.Serialization.
(6)It supports only 2 service operations like One-Way and Request-Reponse.
(7)WEB Service are slower than WCF.
(8)Here HashTables will not be serialized. It can serialize only those collections which implement IEnumerable and ICollection.
(9)It doesnot support Multi-Threading.
(10)It supports XML and MTOM message encoding only.
(11)Here unHandled Exception returns to the client as SOAP Faults.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

something about WCF

What is endpoint in WCF service

What are the main components of WCF

different ways to host wcf services

What are the advantage of WCF






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap