Shivprasad Koirala
.NET/ASP.NET Interview Question - Elaborate the term WebService and how it differ from Remoting?
By Shivprasad Koirala in ASP.NET on Apr 30 2011
  • kalit sikka
    Jun, 2011 17

    Both Remoting and Web Services are ways of communication between applications.

    Remoting - In remoting, the applications involved in the communication process may be located on the same computer, different computers in a same or different network. In remoting, both applications know about each other. A proxy of an application object is created on the other application.

    Web Services - Communication between applications using web services is platform independent and programming independent. The application that consumes the web service, simply accesses it, without needing to know how this web service has actually been implemented & created.

    Here are some of the major differences:
      * ASP.NET Web Services may be accessed using HTTP only. Remoting objects may be accessed over any protocol like TCP, SMTP, HTTP
      * Web Service are Stateless, whereas Remoting has support for both stateless and with-state environment, which is achieved using Singleton and Singlecall activation
      * ASP.NET provides good support to create Web Services. They are easy to deploy. In comparison, Remoting is little complex.
      * Web services may be considered very reliable, due to the fact that they are hosted on IIS. In remoting, if IIS is'nt used, then methods like plumbing have to be used to ensure the application reliability.
      * In .NET, when we create an application that consumes a web service, the web service may or may not be built using .NET. But while implementing Remoting in .NET, both the applications must be built in .NET.
      * Using web services, only a limited number of types may be serialized (XML). Using Remoting, objects like SOAP objects, Binary objects & XML Objects may be serialized.


    http://kalitinterviewquestions.blogspot.com/




    • 0
  • kalit sikka
    Jun, 2011 17

    Both Remoting and Web Services are ways of communication between applications.

    Remoting - In remoting, the applications involved in the communication process may be located on the same computer, different computers in a same or different network. In remoting, both applications know about each other. A proxy of an application object is created on the other application.

    Web Services - Communication between applications using web services is platform independent and programming independent. The application that consumes the web service, simply accesses it, without needing to know how this web service has actually been implemented & created.

    Here are some of the major differences:
      * ASP.NET Web Services may be accessed using HTTP only. Remoting objects may be accessed over any protocol like TCP, SMTP, HTTP
      * Web Service are Stateless, whereas Remoting has support for both stateless and with-state environment, which is achieved using Singleton and Singlecall activation
      * ASP.NET provides good support to create Web Services. They are easy to deploy. In comparison, Remoting is little complex.
      * Web services may be considered very reliable, due to the fact that they are hosted on IIS. In remoting, if IIS is'nt used, then methods like plumbing have to be used to ensure the application reliability.
      * In .NET, when we create an application that consumes a web service, the web service may or may not be built using .NET. But while implementing Remoting in .NET, both the applications must be built in .NET.
      * Using web services, only a limited number of types may be serialized (XML). Using Remoting, objects like SOAP objects, Binary objects & XML Objects may be serialized.



    • 0
  • Shivprasad Koirala
    Apr, 2011 30

    Answer:

    WebServices is a cross platform where we can invoke object which are lying on different server or different georphical
    location.

    Both WebService and Remoting are used for same Purpose but the difference in Remoting is that both the server and client should be .NET platform while in WebService the server and client can be in different platform.

    Remoting is faster than WebService.

    WebService can be access only through http protocol but Remoting can access by any kind of protocol like TCP,HTTP,SMPT,FTP.

    Regards,

    Please click here to see more .NET/ASP.NET interview questions



    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS