WCF

WCF Snippet Tutorial - Overloading Methods


Posted in:

This snippet will show you how to add overloaded functions to your WCF service contracts.

Read More Icon Read More

Creating a REST Client using WCF


Posted in:

A couple of weeks ago we received an email about consuming a REST service in WCF. Well, this tutorial should answer that email. Today we're going to build a simple client for Twitter's REST API using WCF.

Since it doesn't look like WCF natively support OAuth authentication, the client we're going to write will do one simple thing - request the latest status updates for a specific user. I'm going to write a command line application that asks for a username and then prints a bunch of status updates along with information about the user. Below is some example output.

Read More Icon Read More

WCF Callbacks Hanging WPF Applications


Posted in:

Here's a bug that has driven me nuts over the past few days. I have a WPF application that communicates with a pretty basic WCF service. Whenever a callback is issued in the middle of a request, the WPF application completely hangs. It's obviously a synchronization issue, however I've gone through the forums and articles and set every imaginable attribute on every imaginable object with no successful outcome.

Read More Icon Read More

WCF Tip: Using Properties in Service Contracts


Posted in:

If you check out any of our previous WCF Tutorials, you'll notice all of the Service Contracts are implemented with interfaces containing only methods. For the longest time I thought that's all that was supported, until I thought about it a little more. In C# land, properties are simply wrappers around a get method and set method, so why wouldn't we be able to use properties in a service contract? Well the answer is we can.

Read More Icon Read More

Book Review - WCF 3.5 Unleashed


Posted in:

I received this book from the publisher a while ago and I've finally made it through and found some time to write up a review. Generally I really like doing book reviews, but I also like to thoroughly read the book before I dive into writing about it - which leads to a long delay between reviews. That aside, here's a review of "Windows Communication Foundation 3.5 Unleashed" by Craig McMurtry, Marc Mercuri, Nigel Watling, and Matt Winkler.

Read More Icon Read More

WCF Tutorial - Events and Callbacks


Posted in:

In our previous WCF Tutorial, we described how to make a very simple client/server application where clients would call functions on the server through a shared interface. In this tutorial, I'm going to expand that application to allow the server to execute functions on the client by using callbacks. Essentially, this is WCF's mechanism to allow events to be raised from the server to it's connected clients.

Read More Icon Read More

WCF Tutorial - Basic Interprocess Communication


Posted in:

What the heck is WCF? For a long time, I couldn't tell you exactly what it was. And honestly, I still don't think I can. WCF is such a broad concept that it's hard to boil down into a concise explanation. When I finally started reading about it, and getting beyond the concepts, things started to clear up. That's what today's tutorial is about - cutting through all the concepts and just use WCF to build a basic server and a basic client.

Read More Icon Read More

Sponsors