Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is the difference between Webservice and WCF

Answers were Sorted based on User's Feedback



What is the difference between Webservice and WCF..

Answer / srini

Asp.net web services are homogenous.
Asp.net web services can use only HTTP chanenel.
Not supports msmq and tcp binding...


WCF is flexible because its services can be hosted in
different types of applications. The following lists
several common scenarios for hosting WCF services:
IIS
WAS
Self-hosting
Managed Windows Service

WCF = Web services + .Net Remoting + MSMQ + (COM+)

Is This Answer Correct ?    53 Yes 8 No

What is the difference between Webservice and WCF..

Answer / eswar

WebService Serves only HTTP Comunication Channel where as
WCF Servers Following Communication Channels
HTTP,TCP,MSMQ,NamedPipes.

Is This Answer Correct ?    34 Yes 3 No

What is the difference between Webservice and WCF..

Answer / arif imteyaz

ASP.NET Web Method is called ASMX [because of the file
extension] (check 4GuysFromRolla about this, they have a
good tutorial)

That technology makes you expose functions as a Web Service
so you can connect it from everywhere and use it. But... you
can't protect the data between server and client, you can
send big files clear and know what happend, etc...

[Note] you can protect the access to the web service using
certificates, but it is complicated but normally, in ASMX we
use username / passsword.

in WCF, you are in the different world about Web
Services,and this s the best technology in .NET to expose
Services (can you see the difference... Services! not Web
Services), WCF does not need IIS to run, it can run as a
System Service on the server, using a console ambient (like
command line), etc, so we say that WCF is a Service not Web
Service. Remember ASMX need IIS to run.

with WCF you can use SSL to encrypt the communication (to do
that in ASMX you need to use WSE - Web Services
Enhancements), you can send big files and securely (to do
that in ASMX you need to use MTOM - Message Transmission
Optimization Mechanism).

you can set the transmission preferences just changing one
line of code, the security is much higher, etc, etc :)

hope you get a better general overview with this, but there
is much more.

bottom line: to expose Web Services that you do not need to
protect, you can use ASMX, no problem at all, but if you
need to protect the communication somehow, do it in WCF!

link: you can read here some performance comparative between
the 2 services

Is This Answer Correct ?    10 Yes 2 No

What is the difference between Webservice and WCF..

Answer / rajneesh

webservice & wcf

webservice only on HTTP
wcf any protocol

WCF MOST big feature compare webservice

1. IIS Hosting & Self hosting
(Process Recycling)
2. service Behaviour(instancecontextmode
(Presession,single,percall) for Mantain session)

3.End Point(Address,Binding,Contract)

4.in wcf datacontact serializaton in webservice
xmlserialization

this were major point of WCF.

Rajneesh Hajela
Gwalior(M.P.)

Is This Answer Correct ?    12 Yes 6 No

What is the difference between Webservice and WCF..

Answer / mohan

sp.net web services are homogenous.
Asp.net web services can use only HTTP chanenel.
Not supports msmq and tcp binding...


WCF is flexible because its services can be hosted in
different types of applications. The following lists
several common scenarios for hosting WCF services:
IIS
WAS
Self-hosting
Managed Windows Service

Is This Answer Correct ?    7 Yes 1 No

What is the difference between Webservice and WCF..

Answer / manoj kumar chouhan

1. Web Service Support HTTP Protocol where as WCF support
HTTP,TCP,NamedPipes.

2. Web Service Hosted only IIS where as WCF hosted in
IIS,WAS(Windows Activation Service),MWS(Managed windows
Service and self Hosting.

3. In Web Service there is no concept of End point where as
in WCF there is End Poin(meaning if we want to change on
server side no need to change to client side)

Manoj Kumar Chouhan

Is This Answer Correct ?    8 Yes 3 No

What is the difference between Webservice and WCF..

Answer / sriram

Web Service can host only HTTP protocol but WCF has support
any Protocol . WCF full of SOA services but web services
are not

Is This Answer Correct ?    5 Yes 4 No

What is the difference between Webservice and WCF..

Answer / dhritirao

WCF is a replacement for all earlier web service
technologies from Microsoft. It also does a lot more than
what is traditionally considered as "web services".

WCF "web services" are part of a much broader spectrum of
remote communication enabled through WCF. You will get a
much higher degree of flexibility and portability doing
things in WCF than through traditional ASMX because WCF is
designed, from the ground up, to summarize all of the
different distributed programming infrastructures offered
by Microsoft. An endpoint in WCF can be communicated with
just as easily over SOAP/XML as it can over TCP/binary and
to change this medium is simply a configuration file mod.
In theory, this reduces the amount of new code needed when
porting or changing business needs, targets, etc.

ASMX is older than WCF, and anything ASMX can do so can WCF
(and more). Basically you can see WCF as trying to
logically group together all the different ways of getting
two apps to communicate in the world of Microsoft; ASMX was
just one of these many ways and so is now grouped under the
WCF umbrella of capabilities.

Web Services can be accessed only over HTTP & it works in
stateless environment, where WCF is flexible because its
services can be hosted in different types of applications.
Common scenarios for hosting WCF services are IIS,WAS, Self-
hosting, Managed Windows Service.

The major difference is that Web Services Use
XmlSerializer. But WCF Uses DataContractSerializer which is
better in Performance as compared to XmlSerializer.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between Webservice and WCF..

Answer / ashish

1 File Format/Extension :
i) ASP.net service - '.asmx'
ii) WCF service - '.svc'

2 Hosting :
i) ASP.net service - Can be hosted in IIS also can be hosted in a Windows Service.
ii) WCF service - Very flexible, can be hosted in IIS, Windows Activation Services(WAS), Managed Windows Services and It also supports Self-Hosting.

3 Transport Protocols/Binding :
i) ASP.net service - It supports HTTP & TCP protocols along with custom binding.
ii) WCF service - supports HTTP, WS-HTTP, TCP, Custom, Named Pipes, MSMQ & P2P(Point to Point) etc.

4 Data Transformation :
i) ASP.net service - XML serializer for Data Transformation.
ii) WCF service - DataContractSerializer for Data Transformation.

5 Serialization NameSpace :
i) ASP.net service - System.XML.Serialization
ii) WCF service - System.RunTime.Serialization

6 Supported Operations :
i) ASP.net service - only One-Way and Request-Response type.
ii) WCF service - Includes One-Way, Request-Response and Duplex.

7 Encoding :
i) ASP.net service - It uses following encoding mechanisms -
XML1.0, MTOM (Message Transmission Optimization Mechanism), DIME (Direct Internet Message Encapsulation)
ii) WCF service - It uses following encoding mechanisms -
XML1.0, MTOM, Binary

Read more differences here - http://www.csharptutorial.in/2012/01/cnet-difference-between-web-service-and.html

Is This Answer Correct ?    0 Yes 0 No

Post New Answer



More ASP.NET Interview Questions

Difference between ADO.net Dataset , ADO Record Set & ADO Data Reader?

3 Answers   HCL, NIIT,


Name two properties common in every validation control?

9 Answers   Siebel Systems,


Which data types are supported by the RangeValidator control?

2 Answers   Siebel,


Where does the Web page belong in the .NET Framework class hierarchy?

1 Answers  


What is view state and use of it ?

1 Answers  






What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState ?

1 Answers  


From which base class all web forms are inherited?

0 Answers  


What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

8 Answers   Siebel Systems,


Explain the difference between panel and groupbox classes using .net?

0 Answers  


Explain the difference between authentication and authorization.

0 Answers  


what is ienumerable interface?

1 Answers  


How do you access individual items of an Master Page

5 Answers   TCS,






Categories