CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Steve Hebert's Development Blog

Steve's Blog - From .Net to dotMath and everything in between.

Webservice Thinking - thoughts on Sahil's blog entry

I was reading Sahil's post titled "WebServices - A WHOLE new way of thinking" and it triggered some thoughts on the subject. 

Sahil discusses the notion that you have to wrap your head around the request/reponse model vs. a remoting/conventional OO model.  This observation is so correct.

The differences between remoting and WebServices are significant - the biggest difference is analogous to fat-client versus web-client application design.  The first and biggest mistake is believing the WebService layer exists at the business layer - bad move! 

One approach is to consider the WebService Interface operating at the same level as the WebUI level.  The request/response interaction is nearly identical, "session management" requirements are the same (even though they are likely to be handled differently) and you can't trust either interface. While you may decide to provide method signatures that look and feel like certain business object calls, remember that, at best, these are merely proxys to the core that also provide authentication, validation, etc..  You can use O-O design to augment the process and provide services like standard validation higher in your object hierarchy, but expect some refactoring of your existing UI related designs.



Comments

Sahil Malik said:

Good post :)

My pet peeve is when someone creates a webservice, (Add 2 numbers), adds a web references and says "Web service is a specialized case of remoting" - and declares a mental victory over the concept of webservices - that picture is just so incomplete.

- SM
# May 24, 2005 1:38 PM

shebert said:

I couldn't agree more. When I see one of those posts, I flip the bozo bit and move on...
# May 24, 2005 2:26 PM

Sahil Malik [MVP C#] said:

So I recently finished giving training at a company. The topic was "Web Services" - which explains my...
# May 24, 2005 9:51 PM
Check out Devlicio.us!

Our Sponsors

Free Tech Publications