-
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...
-
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...