What is the difference between Webservice and WCF
Answer Posted / 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 |
Post New Answer View All Answers
How do you hide the columns?
Explain the features that make asp.net more used framework? : asp.net mvc
Explain the server control events of asp.net ?
What is the typical session identifier?
What is the parent class of all the web server control?
What is bound controls
Explain the concept of View Model in MVC?
How can we communicate with each server in N-tier Architecture? and what are the methods?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
Explain the difference between debug.write and trace.write? When should each be used?
What is is post back property in asp net?
Explain About WebService
How to sign out from forms authentication?
Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?
What is bson in web api?