Introduction:
In this article,i am to explain about what are the main differences between web services and
windows communication foundation (WCF).
Main:
1.Page Model:
In asmx page we need to maintain a complete set of information that describes how the data
will be formatted,how to wrap a soap header,and how to prepare it to be sent.But it doesn’t
maintain a security.
But WCF enhances quite significantly.
2.TightCoupling:
Web services are tight coupling with the http runtime and the dependence on iis to host it.
But in WCF,we can host using applications,iis and windows service.
3.Instantiation:
Web Service Instantiation: per-call basis
WCF Instantiation: singleton,private session,per call
4.Security:
Web services does not guarantee end-to-end security or reliable communication.
WCF guranteed reliable and security.
We can call web service in wcf application,but cannot call wcf service in asmx.
Conclusion:
Hope this helps,
Happy coding.