locked
webservices and wcf in asp.net RRS feed

  • 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

  • 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