Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Designing Web Services: Messages vs RPC

The most natural way to create Web services in ASP.NET (this technology is often referred to as ASMX) is to write a facade class or interface using pure OO approach and decorate the class and the public methods with proper attributes (WebServiceAttribute and WebMethodAttribute, respectively). For simple Web services, we may even use ADO.NET DataSet objects (or strongly typed data sets) passed as arguments or as a return value. While this is probably fine for small Web services acting mainly as a very thin gateway to the database, it may not be appropriate for large enterprise Web services that interact with rich business logic layer.

There is also a mismatch between the underlying technology (SOAP and WSDL) that is very much message oriented and the most popular usage style which basically utilizes Web services as yet another RPC (Remote Procedure Call) technology. This kind of approach to designing distributed systems may lead to tight coupling not only between the service and its clients but also between the service and the business logic layer (it probably has something to do with the curious temptation of some developers and architects to transfer serialized business entities across the wire).

The approach one should take when designing new enterprise-class Web service is to think about it in terms of message exchange rather than in terms of distributed objects as we often do now. This may lead us to a whole new world of Web services that support message-based security, asynchronous message exchange scenarios and long-running business processes.

I will try to blog more on topics related to Web services quite often. This post was meant to make a gentle introduction to the way I perceive Web services technologies and their usage. Next posts will probably vary from architecture level musings to code-rich technical posts. More to come soon!


Posted 09-28-2006 4:06 PM by Marcin Hoppe

[Advertisement]

Comments

Jim Bolla wrote re: Designing Web Services: Messages vs RPC
on 10-05-2006 7:10 PM

Sounds intriguing. I haven't done much yet with web services but will be soon for an upcoming project. Some examples what what to do vs. what not to do would be great.

social bookmarking link wrote re: Designing Web Services: Messages vs RPC
on 01-17-2013 10:34 PM

FqPL7T I loved your article post.Thanks Again.

buy discount viagra wrote re: Designing Web Services: Messages vs RPC
on 02-02-2013 9:18 PM

UPsBZx Thanks a lot for the blog article.Really thank you! Really Cool.

buy cialis discount wrote re: Designing Web Services: Messages vs RPC
on 02-24-2013 8:01 AM

IMp1JY I really enjoy the article.Really thank you! Fantastic.

http://1buyviagrahere.com/ wrote re: Designing Web Services: Messages vs RPC
on 03-03-2013 1:25 PM

vVLoGH Thanks for sharing, this is a fantastic article post.Thanks Again. Want more.

bookmaring service wrote re: Designing Web Services: Messages vs RPC
on 03-14-2013 7:23 PM

aH8v56 wow, awesome blog post.Really looking forward to read more. Will read on...

Social bookmarks wrote re: Designing Web Services: Messages vs RPC
on 03-22-2013 11:11 AM

BuTpdw I really enjoy the article post.Really looking forward to read more. Awesome.

social bookmarking service wrote re: Designing Web Services: Messages vs RPC
on 04-12-2013 5:40 PM

loFM6g Fantastic blog post. Keep writing.

buy social bookmarks wrote re: Designing Web Services: Messages vs RPC
on 04-16-2013 7:07 AM

pF8VB6 Thanks for the article.Thanks Again. Want more.

awesome linkbuilding site wrote re: Designing Web Services: Messages vs RPC
on 09-30-2013 7:27 PM

wh2m4h Thanks for the blog.Thanks Again. Really Cool.

take a look at it! wrote re: Designing Web Services: Messages vs RPC
on 10-23-2013 5:25 PM

Jv069Y Thanks for sharing, this is a fantastic blog post.Much thanks again.

awesome site wrote re: Designing Web Services: Messages vs RPC
on 11-20-2013 9:02 PM

dINvPQ I really liked your blog post.Really thank you!

check it out wrote re: Designing Web Services: Messages vs RPC
on 03-22-2014 1:43 PM

mz5pJv Thank you ever so for you blog article. Great.

check it out wrote re: Designing Web Services: Messages vs RPC
on 03-25-2014 9:14 PM

jLTcTQ Appreciate you sharing, great article. Keep writing.

best money here wrote re: Designing Web Services: Messages vs RPC
on 04-05-2014 12:24 PM

lU3Uuq wow, awesome article post.Much thanks again. Really Great.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)