My question is possibly a subtle one:
Web services - are they extensions of the presentation/web layer? ..or are they extensions of the biz/data layer?
That may seem like a dumb question. Web services are an extension of the web tier. I'm not so sure though. I'm building a pretty standard webform with some AJAX-y features, and it seems to me I could build the web services in one of two ways:
- they could retrieve data for me (biz/data layer extension).
example:GetUserData(userEmail)
where the web form has javascript on it that knows how to consume the user data and make changes to markup - they could return completely rendered user controls (html; extension of web layer)
example:RenderUserProfileControl(userEmail)
where the web form has simple/dumb js that only copies and pastes the web service html in to the form
I could see it working in either scenario, but I'm interested in different points of view... Thoughts?