ASPnews Home





ASP Directory


About Us

Search ASPnews:
Internet Lists
Internet News
Internet Resources
Linux/Open Source
Personal Technology
Small Business
Windows Technology
xSP Resources
Corporate Info
Tech Jobs
E-mail Offers
Be a Commerce Partner
Cheap Plane Tickets
Digital Camera Review
Register Domain Name
Memory Flash Cards
Online Education
Remote Access
Advertising Trucks
Online Degrees
Best Digital Camera
Cheap Web Hosting
Digital Camera Review

ASPnews Focus
Top News:
» SOAs So Close, Yet So Far

» Why SaaS Is Making a Comeback

» Join the Discussion:'s industry forums

» More ASP News

TOP 50
Top 20 Providers
 & Top 30 Enablers
Free Newsletter!

ASPnews Shortcuts
Week's Top News

ASP News at

Industry Events

Discussion Forums

Industry Basics

Site Guide

Case Study: Small Business Delivers & Grows Using Blackberry. Discover how Make It Work LLC, a fee-for-service computer support business, took this promise a giant leap forward with BlackBerry®.


Dev: Remoting or Web Services, How Do I Decide?
By Paul Kimmel

January 6, 2005

Consulting is at times enlightening and at other times torturous. It is enlightening when I meet smart people and get to work on a diverse and interesting range of problems. It is torture when my participation comes long after painful decisions have already been made or sound advice has been ignored because of groupthink. This is the same kind of torture parents must feel when their kids make mistakes — experimenting with drugs, neglecting their studies, or forgetting to look both ways when crossing a street — that they have tried to help them avoid.

This is a main reason I write year after year. As a writer, I like to imagine that adoring readers follow most, if not all, of the advice in my columns and consequently steer clear of trouble. In that advisory spirit, I intended this article to help you decide when to use XML Web services versus when to use .NET remoting. The decision is actually quite simple: Choose XML Web services almost all of the time. That’s it. What? Don’t believe me? Need justification? Okay, read on.

Understanding Your Choice

XML Web services are an implementation of .NET remoting. This means when you use XML Web services, you are really using .NET remoting. In fact, XML Web services are an easy way to use marshal-by-value .NET remoting.

XML Web services also are perfectly suited for many purposes because they are easy to produce, configure, deploy, and consume. I suspect this functionality will motivate Microsoft to bury remoting permanently.

When to Use .NET Remoting

Occasionally, using remoting directly makes sense. The following basic guidelines specify when it is the right choice:

  • Your distributed solution will be used by an internal customer.
  • You need two-way communications between client and server.
  • You have to work with large amounts of data, and serialization and transporting these large objects would result in terrible performance.
  • You need to work with resources that reside on the server, and a copied object would not provide access to those resources.

You can’t do much to avoid remoting when resources are on the server or events raised on the server need to be handled by clients, but you can mitigate the large data problem by defining Web services that are more selective about the data they return.

This means that you need remoting only when you have server-side resources or server events. I suspect that if Microsoft solves these problems with XML Web services, Web services will work 100 percent of the time.

Choose Web Services

XML Web services are “.NET remoting lite.” Most of the time, when you want to build distributed applications, you should use XML Web services. In increasingly rare circumstances, you may need to program against the remoting namespace itself, but try to use Web services first.

For an example of .NET remoting, see my article “.NET Remoting and Event Handling” on or


Paul Kimmel is the VB Today columnist for and has written several books on object-oriented programming and .NET. Check out his book, Visual Basic .NET Power Coding, from Addison-Wesley and his upcoming book, UML DeMystified, from McGraw-Hill/Osborne (Spring 2005). Paul is also the founder and chief architect for Software Conceptions, Inc, founded 1990. He is available to help design and build software worldwide. Paul may be contacted for consulting opportunities or technology questions at

If you are interested in joining or sponsoring a .NET Users Group, check out

Copyright © 2004 by Paul Kimmel. All Rights Reserved.

Do you have a comment or question about this article or the ASP/Web services industries in general? Speak out in our Discussion Forum.

Article courtesy of

Email this Article
View Printable Version
Back to Strategies


Featured Links
Learn the secrets of the popular search engines!
Free Web Hosting Buyer's Guide -- Click Here!
Enhance your Web site with the Dynamic HTML HierMenus Code

JupiterWeb networks:

Search JupiterWeb:

Jupitermedia Corporation has three divisions:
Jupiterimages, JupiterWeb and JupiterResearch

Copyright 2005 Jupitermedia Corporation All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Jupitermedia Corporate Info | Newsletters | Tech Jobs | Shopping | E-mail Offers

Give us your Feedback