Wednesday, August 20, 2014

Remoting.Net vs Web Services

Both .Net Web services and .Net Remoting are Microsoft solutions for distributed application. Before choosing one of them for application development, let’s identify the differences between these technologies.
Protocol
.Net web services can be accessed only over HTTP whereas .Net remoting can be accessed over any protocol including TCP, HTTP, or SMTP.
Performance
In terms of performance, .Net remoting is faster than its counterpart web service when it uses TCP channel with binary formatter. But if you use soap formatter in .net remoting, web services with soap formatter either with TCP or HTTP channel provides faster solution.
Security
.NET Remoting can be hosted either in IIS or in other container. If hosted in IIS, .NET Remoting can benefit all security advantages of IIS. But when hosted other than IIS, the application has to take care security aspect itself. 
On the other hand, .Net web services are hosted in IIS, by default. So, it leverages all features of security provided by IIS.
State Management
Web services are a stateless in nature like web application. You need to use state mechanism to retain state. You can use session or application object to maintain state. In .Net Remoting, Singleton objects can share state whereas if you don’t need to maintain state, you can use Singlecall objects.
Interoperability
Web services support heterogeneous environments which means client and remote object can be built in any platform.
.NET remoting requires the client be built using .NET, enforcing homogenous environment.
Reliability
Since .Net web services are hosted using IIS, they are reliable whereas .Net remoting application needs to maintain security on its own if not hosted using IIS. When hosted in IIS, .Net remoting is also as reliable as web services.
Ease of development
Create and consuming .Net web services are easier process. To create remoting object, you need create remote object, hosting application to host remoting object and configuration file to specify type of channel and formatter to be used by remoting object.
NET - difference between XML Web Services using ASMX and .NET Remoting using SOAP - June 24, 2009 at 10:30 AM by Amit Satpute
What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?
  • XML Web services are more restricted than objects exposed over .NET Remoting.
  • XML Web services support open standards that target cross-platform use.
  • XML Web services are generally easier to create and due to the restricted nature of XML Web services, the design issues are simplified.
  • XML Web services support only SOAP message formatting, which uses larger XML text messages.
  • Communication with .NET Remoting can be faster than XML Web service communication with a binary formatter.
  • XML Web services are designed for use between companies and organizations.
  • XML Web services don't require a dedicated hosting program because they are always hosted by ASP.NET.
  • Consumers can use XML Web services just as easily as they can download HTML pages from the Internet. Thus there's no need for an administrator to open additional ports on a firewall as they work through MS-IIS and ASP.NET


Related Posts:

  • Advantages of .Net Web Services Web Services are supported on a wide range of platforms. Web services may extend its interface and add new methods without affecting the clients as long as they still provide the old methods and parameters. A client makes… Read More
  • What is WSDL? WSDL stands for Web Services Description Language, an XML-based language  that describes Web services and how to access and locate them. … Read More
  • Web services vs. CORBA and DCOM Web services Web services use HTTP protocol for sending and receiving messages between the applications.  The data encoding in web services is based on XML.  Web services are defined using WSDL (Web Services Descr… Read More
  • What is UDDI? UDDI stands for Universal Description, Discovery and Integration. It is an open,  Internet-based specification that offers directory service for storing information  about web services. … Read More
  • Explain when do we required ASP.NET web services. ASP.NET web services are the great way to expose your middle tier components via internet. These components offer no issue communicating across firewalls as they use SOAP as transport protocols that transmit structured data… Read More

0 comments:

Post a Comment