- What are the differences between ASP.Net Web services and .NET Remoting?
S.No Features ASP.Net Web services .NET Remoting 1 Protocol It can be accessed only over HTTP It can be accessed over any protocol (including TCP, HTTP, SMTP and so on) 2 State Management Web services work in a stateless environment It provides support for both stateful and stateless environments through Singleton and SingleCall objects 3 Type SystemWeb services support only the datatypes defined in the XSD type system, limiting the number of objects that can be serialized.
Using binary communication, .NET Remoting can provide support for rich type system
4 InteroperabilityWeb services support interoperability across platforms, and are ideal for heterogeneous environments.NET remoting requires the client be built using .NET, enforcing homogenous environment.
5 ReliabilityHighly reliable due to the fact that Web services are always hosted in IIS
Can also take advantage of IIS for fault isolation. If IIS is not used, application needs to provide plumbing for ensuring the reliability of the application
6 ExtensibilityProvides extensibility by allowing us to intercept the SOAP messages during the serialization and deserialization stages.Very extensible by allowing us to customize the different components of the .NET remoting framework. 7 Ease-of-ProgrammingEasy-to-create and deploy.
Complex to program.