Wednesday, May 6, 2009

Difference between .Net Remoting and Web Services

Difference between .Net Remoting and Web Services

1. .Net Remoting can be accessed over various protocols i.e. HTTP, TCP & SMTP but
2. Web Services can be access over HTTP only.

3. NET Remoting provides the fast communication than Web Services when we use the TCP channel and the binary formatter

4. Remoting has support for both stateless and with-state environment, which is achieved using Singleton and Singlecall activation but web services are only stateless.

5. Web services serialize objects through XML contained in the SOAP messages and can thus only handle items that can be fully expressed in XML. .NET Remoting relies on the existence of the common language runtime assemblies that contain information about data types. This limits the information that must be passed about an object and allows objects to be passed by value or by reference.
6. Web services support only the objects that can be serialized but .NET Remoting can provide support to all objects that inherit MarshalByRefObject.
7. Web Services support heterogeneous environments means interoperability across platforms but .Net remoting requires .Net on both server and client end.
8. Web Services are reliable than .Net remoting because Web services are always hosted in IIS.
9. Web Services are ease to create and deploy but .Net remoting is bit complex to program.

1 comment:

 
Locations of visitors to this page