-
In my last post I explained how you could use WCF and MSMQ to respond to messages asynchronously. We've setup a class library with our service, a console application for our host and a console application for our client. In this post I'll explain how we can use the class library again for hosting...
-
It's been a while since I blogged about one of my favorite topics, Windows Communication Foundation. In this article I'll explain how you can use MSMQ with WCF to really process messages asynchronously. It's unbelievable how easy this is. Read my complete WCF series on how to set up your...
-
On my WCF Introduction post I received a trackback to an example that should be really simple to start WCF with. I'm not here to judge the post (although I could ;-), but it got me thinking. Although I created some small posts on how WCF works, together it might still be too much for people that...
-
As I've been pretty busy, it's been a while since my last post in the WCF series. But let's have a look at bindings now. A binding will tell a client what's necessary to connect to the service. In other words, how we connect is described by the binding. As you can see in the image, this is composed from...
-
A while ago I saw this decision chart to help choose a WCF default binding. Unfortunately I cannot remember where it came from. The problem I had with it was that you could only reach wsHttpBinding if you had to use interop. But you might need to use HTTP for a transport. Also the local option came too...
-
We'll return once again to the WCF ABC and in this part we'll examine what we can do with the address of our service. There are many options on how to specify the address of your service, especially when you start combining options. But I'll discuss the three main options. Don't be scared by the size...
-
Because I'm doing presentations, demos and the WCF article series , I host a lot of WCF services inside a console application. Console applications are great for demonstrating something really quickly. When hosting a WCF service in a console application, you require a pause so that your client applications...
-
Last time we generated the client and configuration file. Whereas in the asmx world we had a proxy class, the WCF team renamed this in the June CTP to client. For us to use the generated files, we need a new console application and add the files. Don't forget to add the System.ServiceModel reference...
-
While having some fun writing a WCF chat application, I was having some troubles. I was using duplex communication over http, using the WsDualHttpBinding. The client needs to setup a callback channel for the service to... well, call back actually. Hence the name, I guess ;-) Anyway, by default it wants...
-
Last time we saw how we could create an instance of our service by hosting it using some configuration in our app.config. We still need to have it exposed using metadata though. We'll do this by adding an endpoint that exposed this, using our WCF ABC again. This endpoint is called a MEX endpoint, from...
-
Finally .NET Framework 3.0 RTM'd , so I don't have to run in my VMWare anymore. A good time to see if everything works and create the host for the service contract we've created last time . We'll do this using a C# console application, as those just rock in simplicity. We need a ServiceHost object to...
-
As seen in the previous article, we need an address, binding and contract to complete the WCF ABC. We'll start at the contract. A contract is defined explicitly , via a class. You add a [ServiceContract] attribute to the class. All methods you want to expose in your service, you mark as [OperationContract...
-
I want to begin with a conceptual explanation about services. A service always has at least one endpoint, but can have multiple. A client normally communicates with only one endpoint. A plain-old-webservice only has one endpoint and communicates via HTTP and Text/XML. The picture below shows a service...
-
I'm starting a series of posts about Windows Communication Foundation (WCF). The goal of the series is to introduce WCF to everyone who hasn't had the opportunity to experience WCF, for whatever reason. While other articles sometimes are too long, I want to keep them very short. That way you're...