HTML5 WebSockets

One of the most exiting new things in HTML5 is the ability to start pushing data from the server to the client. Traditionally web applications have depended on clients requesting data from the server. And this is fine in most applications. However there are lots of cases when you might want to push events to the client as soon as they happen and not wait for a client to query for them. For example a stock broker application requires traders to know about stock price changes as soon as they happen, alerting the trader 5 minutes after the fact is … Continue reading HTML5 WebSockets

Getting started with the ASP.NET Web API

Some time ago I did a number of blog posts about the beta versions of the WCF Web API. As it turns out the WCF Web API team has moved into the ASP.NET team, a good thing as far as I am concerned, and as a result it is now called ASP.NET Web API. Now this is much more that just a name change. For starters there is very little of the WCF bits still involved, in fact when you use ASP.NET as a host none at all. As a result it takes on quite a few characteristics of ASP.NET … Continue reading Getting started with the ASP.NET Web API

Getting Started with WCF and Rest material

Thanks everyone for joining in with the DevelopMentor webinar I did last night on Getting Started with WCF and Rest. If you want to take another look at the slides or samples you can download them using the links below: PowerPoint slides. ASP.NET MVC 3 project containing the REST service.   For more info about the WCF Web API you can check the WCF CodePlex site.   Enjoy!   [f1] [f2]

Using HTML5 WebSockets

In previous blog posts I wrote about using Server-Sent Events so send data from the server to the browser. This works but has the drawback that it is a one way messaging from the server to the browser. There is nothing preventing you from doing ajax style calls back to the server but basically you are using 2 connection. The big plus for Server-Sent Events is that is use standard HTTP connections so the infrastructure is no problem.   WebSockets Sometimes you want more flexibility of duplex communication and this is where WebSockets come in. Opening a connection from the … Continue reading Using HTML5 WebSockets

Building rich HTML5 clients using REST services recording

For those who missed the online event about building JavaScript and HTML5 client for a REST service build using the new WCF Web API the recordings are up. You can download the hi res recording here or download one of the other formats from the main page here. And remember there a bunch of other useful recording from other DevelopMentor instructors on the same page.   Enjoy!   [f1] [f2]

Getting Started with WCF and Rest Services recording

The recording for the webinar I did on October 4th about getting started with REST services and the WCF Web API is available on the DevelopMentor website. You can watch the video stream from here or download the file, even in mobile format, from here. And besides this screencast there are a lot of other interesting videos to watch there   Session abstract In this session Maurice de Beijer will show you how to get started building REST services. He will explain how REST embraces the strengths of HTTP to create very scalable services. He will show how REST services … Continue reading Getting Started with WCF and Rest Services recording

Building rich HTML5 clients using REST services

  You can download the slide from my session on Building rich HTM 5 clients using REST services here and the sample application using the WCF Web API here.   The slides are also available on SlideShare.   Building rich HTML 5 clients using REST services View more presentations from Maurice Beijer Enjoy!   [f1] [f2]

Getting started with REST services and the WCF Web API

You can download the demos and slides from the “Getting started with REST services and the WCF Web API” webinar. Slides Demos   Or watch the slide on SlideShare here.   Don’t forget about part 2 on “Building rich HTML 5 clients using REST services” on Tuesday, October 25, 2011 2:00 PM – 3:30 PM EDT   Enjoy! [f1] [f2]

Using HTTP methods in a REST service

In a normal language like English we use verbs all the time to describe what we are doing. So I guess the designers of the HTTP specs must have thought why not do the same with the HTTP protocol. And that makes perfect sense. In the HTTP spec these are called methods but commonly these are also names verbs. For example when we are using a browser to display some data from the Internet we are getting that data so we use the GET method. And as most of the time we are just retrieving data it makes sense that … Continue reading Using HTTP methods in a REST service

Using HTTP status codes in a REST service

When we build services, or write any code for that matter, error can occur and we have to cater for those. With SOAP service we gibe a calling application information about the error by returning a SOAP fault. This SOAP fault is just another piece of XML informing the calling application about whatever was wrong. Now the HTTP protocol also contains a way of sending status information back to the client but when using SOAP that is mostly ignored, all we use is a 200 OK or an 500 Internal Server Error error status. And for one returning a 500 … Continue reading Using HTTP status codes in a REST service