Ontwikkelen van REST services met de WCF Web API
Sorry Dutch language only. Mijn artikel over het ontwikkelen van REST services met de WCF Web API is nu online. Het is hier te vinden. Enjoy! [f1] [f2]
Sorry Dutch language only. Mijn artikel over het ontwikkelen van REST services met de WCF Web API is nu online. Het is hier te vinden. Enjoy! [f1] [f2]
A reader posted a question in my blog post about REST services and URL’s about modeling search and login as a resource. As this is an important concept I decided not to add a comment but write another blog post about this. About using http://localhost/login as a URL in a REST service The URL http://localhost/login suggest that there is a resource login while login clearly is an action, not a resource. You don’t create or delete logins. Now you might create user sessions and in that case you might have a URL like http://localhost/UserSession where you can create and … Continue reading About logins and searches as resources
When designing and building REST services the URL’s used take on a rather important part. So it pays to think a lot about the URL structure up front. Basically a URL is used to identity a recourse. So it kind of behaved like a primary key in a database. There are a few big differences to keep in mind. Unlike a primary key a resource can have multiple URL’s pointing to the same resource. Another difference is that we often have a URL for a collection of the same items. So for example: http://localhost/books/123 Points to a specific book … Continue reading REST services and URL’s
I recently did a few blog posts showing the basics of how to get started with the WCF Web API but before I continue I think it is best to start with the why instead of how. A lot of people will be familiar with writing SOAP style services but not everyone is quite as familiar with the REST approach so I guess that takes a bit of explanation. This subject is a bit long for a single blog post so I am going to do a number explaining what REST is, the difference with SOAP and how to … Continue reading On building Restful services
WCF might use the WS-* SOAP standard for communications but the WS-* specs leave vendors with a lot op maneuvering room when it comes to how to exactly implement things. As a result doing interoperable work between WCF and, for example, an IBM WebSphere server can be quite tricky to setup. Something I have experienced all to often Fortunately Microsoft has now released the WCF Express Interop Bindings that should make live quite a bit easier. These binding are preconfigured for a number of common platforms like Apache, IBM WebSphere or Oracle WebLogic and should make things quite a … Continue reading WCF Express Interop Bindings
Warning: This post is based on a prerelease version of the WCF Web API In my previous blog post I showed how to add to and use the new WCF Web API a console application using NuGet. Now that works but it is far more likely that you will want to be using IIS and host the REST service as part of a web application. So in this blog post I am going to show how to do the normal thing I Created an ASP.NET MVC 3 app to host the REST service. Not that there is anything … Continue reading Using the WCF Web API in an ASP.NET MVC application
Warning: This post is based on a prerelease version of the WCF Web API In my previous blog post I showed how to get started with the new WCF Web API but one thing I skipped is how to install and add it to your project first. So in post I am going to add that information. The easiest way to get started is to use NuGet and add the WCF Web API package to your project. There are several different packages for the WCF Web API but the one named WebApi.All is the easiest to get started … Continue reading Adding the WCF Web API to a project
Warning: This post is based on a prerelease version of the WCF Web API When designing services the REST style is becoming more and more popular. Not that REST is anything new, it has been around for some time. The fact that WCF supports REST services isn’t new either as the WebServiceHost and WebHttpBinding where released with the .NET framework 3.5. However the original REST support in WCF was quite limited. You could build very nice REST services but you had to do a lot of work because out of the box there isn’t support for much functionality. … Continue reading Getting started with the WCF Web API
For those that attended the Guerrilla Enterprise .NET course last week in Copenhagen and didn’t get a change to download all the sample you can download all the demos Richard Blewett, Dominick Baier and I wrote from here. And thanks for being there, it was a fun event 🙂
Lots of people like to use in inversion of control container, usually shortened to IOC, to inject dependencies into classes. The are lots of reasons for doing so but in the end they mostly boil down to separation of concern which makes thing more modular and thereby easier to reuse and unit test. When you start doing so manually injecting dependencies into a types constructor is easy enough but after a while this tends to become tedious and getting an IOC container to do this for you is a lot easier. The problem is that you don’t always control the … Continue reading Inversion of control and WCF