In yesterdays post REST in WCF – Part II (AJAX Friendly Services, Creating The Service), I introduced a starter solution containing a few ASP.NET AJAX client library controls. The starter solution was stubbed out, awaiting the implementation of an AJAX-Friendly WCF service and the client code to call that service. I then went through and implemented an AJAX-Friendly service, taking advantage of the webHttpBinding and the enableWebScript endpoint behavior.
In this post I am going to implement the client-side code that consumes our service. You will remember from the last post that Catalog.aspx (the main page in the application that contains the AJAX controls) had a stubbed out method GetData. This method is called when the page is initialized. It is also called when the user navigates between pages of products. It is here that I need to add the code to call my WCF service.[ Read More → ]
In yesterday’s post REST in WCF – Part I (REST Overview), I gave a brief overview of REST, putting forth the idea of a continuum of RESTfulness of services, ranging from HI REST to LO REST. In this post, I am going to illustrate, perhaps the most familiar kind of RESTful WCF service, an AJAX Friendly service. As we will see, this kind of service will fall on the LO REST side of the continuum. Now, some people naturally see bigger and higher as necessarily better, therefore discounting the viability of this LO REST implementation. As you will see in this post, that is not the case. The AJAX Friendly WCF service is indeed quite powerful and consequently helpful.[ Read More → ]
I will be doing an interactive theatre session at TechEd in a few days (if you are going to be there, stop by – info below). The topic of the session is REST in WCF. I thought it might be nice to blog about the topic, as I review my demos, so here goes:
I have given this talk a number of times in the past and usually start with a brief overview of REST. I’ll do the same here, but before I begin (and you start drafting your response), I want to bring up the fact that EVERYONE seems to have a different definition of REST. Some of these definitions are more stringent, while others are more liberal. I tend to envision a continuum of RESTiness (as GW would put it). See below…[ Read More → ]