216,737 views 192 on YTPak
464 14

Published on 18 Nov 2013 | over 3 years ago

Link for code samples used in the demo
csharp-video-tutorials.blogspot.com/2013/11/part-2-creating-remoting-service-and_17.html

Link for all dot net and sql server video tutorial playlists
www.youtube.com/user/kudvenkat/playlists

In this video we will discuss creating a simple remoting and a web service. This is continuation to Part 1. Please watch Part 1 from WCF video tutorial before proceeding.

We have 2 clients and we need to implement a service a for them.
1. The first client is using a Java application to interact with our service, so for interoperability this client wants messages to be in XML format and the protocol to be HTTP.
2. The second client uses .NET, so for better performance this client wants messages formatted in binary over TCP protocol.

To satisfy the requirement of the first client let's create a web service. Web services use HTTP protocol and XML message format. So interoperability requirement of the first client will be met. Web services can be consumed by any client built on any platform.

Can we use .NET Remoting to build a Web service?
Yes.

If the client is not built using .NET platform, will they be able to consume a .NET Remoting web service?
They can, but we need to be very careful in choosing the data types that we use in the service, and client-activated objects and events should be avoided. But keep in mind .NET Remoting is not meant for implementing interoperable services.

If your goal is to build interoperable services use ASP.NET Web Services. But with introduction of WCF, both .NET Remoting and ASP.NET Web Services are legacy technologies.

Loading related videos...