Home > DeveloperSection > Interviews > What is the difference between web service and remoting?

Posted on    October-26-2010 12:00 AM

 ASP.Net ASP.Net 
 1 Answer(s)
  1529  View(s)
Rate this:

Pushpendra Singh

Total Post:241

Posted on    October-26-2010 12:00 AM

• Web services may be accessed using HTTP only. Remoting objects may be accessed over any protocol like TCP, SMTP and HTTP etc.
• Web services are stateless whereas Remoting supports 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 bit complex.
• Web services may be considered very reliable due to the fact that they are hosted on IIS. But in Remoting if IIS is not used then methods like plumbing have to be used to ensure the application reliability.
• Using Web services only a limited number of types may be serialized (XML). Using Remoting, objects like SOAP object, Binary objects and XML objects may be serialized.
• In .Net when we create an application that consumes a web service, the web service may or mayn’t be built using .Net. But while implementing Remoting in .Net both the applications must be built in .Net.

Don't want to miss updates? Please click the below button!

Follow MindStick