What is the difference between web service and remoting?

Ashish Ashu picture Ashish Ashu · Sep 15, 2009 · Viewed 12.9k times · Source

I know web service and have some knowledge on remoting. Both concepts invoke methods on the client machine so where lies the difference ??

Through remoting we can also execute the method on the remote machine and the same functionality can be achieved through web service too..

Please excuse me if it is the obvious question..

Answer

blowdart picture blowdart · Sep 15, 2009

Both support distributed applications.

Web services are cross platform, using common standards and work through firewalls. They also think in terms of messages, not objects - you send a message to a service, and you get a reply.

Remoting is an MS only technology which is not cross platform and talks in a binary format. It thinks in terms of objects, you create an object on the remote server and work with it. It doesn't work well with firewalls. Remoting is also dead these days, MS favour WCF (which includes web services)