Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is it possible to create web application with both webforms and mvc?

988


Please briefly explain the usage of global.asax?

964


How long do session variables last?

957


What are validators and list some validators of asp.net?

970


Define common type system?

989


What is difference between mvc and asp.net? : Asp.Net MVC

1198


How to use a Master Database in Asp.net?

1068


What are uri parameters?

1041


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

1007


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

1119


How to add DateTime Control in normal DataGrid Server Control?

1096


Describe a bubbled event and how it is used ?

1129


Can you explain the importance of finalize method in .net?

1036


What is event in asp.net?

1015


Explain Optimization technique description?

1039