Answered by:
webservices and wcf in asp.net

Question
-
User-1267213270 posted
Hello
Am newbee in services please can anyone explain core concepts of both webservices and wcf with examples.
Thanks
Friday, September 27, 2013 4:09 AM
Answers
-
User-488622176 posted
Examples have been given.
Webservices can be considered as a set of functionality that can be called from a remote application (through the 'web' what can be a LAN, WAN, ...) . What is in the functionality depends on the goal of the service. You communicate with them using a request message as input for a method of the service. You optionally get a result by means of a reply message. Request and reply messages can be either native types (string, int, ...) or object hierarchies.
Webservices can be wrapped by a technology that allows them to be called in a certain way. You have the classic ASMX that wraps every communication in SOAP messages, and you have the more recent WCF that offers a lot of more functionality. Other conventions are REST based (can also be done through WCF).
Webservices are mostly part of service architectures (SOA). How you expose & call these services is indepent of the notion of a webservice.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 27, 2013 7:44 AM
All replies
-
User839260933 posted
Hi
The following links might be helpful
http://www.codeproject.com/Articles/406096/A-beginners-tutorial-for-understanding-Windows
http://www.aspdotnet-suresh.com/2011/05/aspnet-web-service-or-creating-and.html
http://www.codeproject.com/Articles/337535/Understanding-the-Basics-of-Web-Service-in-ASP-NET
Friday, September 27, 2013 5:11 AM -
User-488622176 posted
Examples have been given.
Webservices can be considered as a set of functionality that can be called from a remote application (through the 'web' what can be a LAN, WAN, ...) . What is in the functionality depends on the goal of the service. You communicate with them using a request message as input for a method of the service. You optionally get a result by means of a reply message. Request and reply messages can be either native types (string, int, ...) or object hierarchies.
Webservices can be wrapped by a technology that allows them to be called in a certain way. You have the classic ASMX that wraps every communication in SOAP messages, and you have the more recent WCF that offers a lot of more functionality. Other conventions are REST based (can also be done through WCF).
Webservices are mostly part of service architectures (SOA). How you expose & call these services is indepent of the notion of a webservice.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 27, 2013 7:44 AM -
User359069892 posted
They are pretty much the same. However there are the differences, some of them are the following (what comes up on my mind right now):
- WCF supports different types of binding
- WCF allows transactions
- WCF allows to use security (transport layer, message layer)
- WCF has several modes of work (pretty much similar to what we had/have in .NET remoting, e.g. singleton, etc.)
Monday, September 30, 2013 9:03 AM