I think the general difference is that .NET remoting was designed for behind the firewall implementations with less overhead in a more controlled environment.
The XML web service is designed for access outside the firewall.
(FYI - I'm not 100% sure about this)
We're helping you. Remember to post back what you learn.
I agree, that's a strange question. My answer would have been... .NET Remoting using SOAP allows other application to read the XML without having it defined in the application that is reading it. If you use Web Services with ASMX, the receiving application must know how to receive and handle ASMX pages, the receiving application must have an ASMX handler built in. In other words, wrapping the XML in a SOAP wrapper makes the XML interface more generic, more applications can read it and not just the ones with Web Services with a ASMX handler.
What you really want to know is the differences between XML Web Services and .NET Remoting. They are both services for exposing an API to remote clients across a network. The main difference is that .NET Remoting is faster, but is technology-specific: the client must be running .NET to receive the messages. XML Web Services are technology-agnostic: any client can receive the message.
SOAP is a protocol for transmitting messages. Specifically, it wraps the XML output from web services.
ASMX is a file type used in .NET Web Service applications. The web server hosting the web service must be running .NET. Just as any browser can open the output created by .aspx, .jsp, .htm, etc web pages, any web service client can receive the output created by that .asmx file.
Here is a link to the MSDN techical overview for remoting.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/hawkremoting.asp
Stephen42, I was under the impression that you could use .NET and remoting to access any SOAP object even if the object was not written in .NET.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 7  Replies