When I grow up I want to code in c#

Twitter












Tag Cloud


WCF

There are 8 entries for the tag WCF

With all these messages flying about, what do they look like...

So far we have a contract, 2 client/server pairs (one programmatic and one administrative). We can observe that the highly difficult tasks of text concatenation and changing case are happening. But these examples are extremely trivial, and as we increase complexity, try new things, it would be nice to observer what is going on, especially when it does not go well. Luck for us, there is a built in logging facility in .NET and a complete feature set and viewing tool specifically for WCF. And all can ......

Let's add config file support to the client...

We have overhauled the server to support the endpoints in the config file. Let's do the same for the Client. We can then start playing with various config file settings. Just to preserve the samples, I am going to copy the client code to a new app, and modify the new one. Let's call it WCFConsoleClientCfg. Step 1. Delete the interface file we had in the previous client. We are going to use a tool to recreate it. Or at least it's equivalent. Step 2. go to project->add new and pick a application ......

Why write code when we can specify our services administratively in XML?

Okay, that was a joke. I like writing code. I am not trying to get rid of coders. Okay, trust me? One of the interesting features of WCF is the ability to do the Address and Binding portion of our 3 legged stool administratively. In a xml file called app.config or web.config. This allows some interesting possibilities of changing the service endpoint without changing code. Being able to take a project from development to QA to production (assuming all is well with it) without a recompile to redirect ......

My endpoint is all dressed up and no one to dance with..

Now that we have a contract defined (WCFContract) a binding selected (basicHttpBinding) and a address picked (http://localhost:8000/WCFC... we are ready to let someone use it. To use a service, we basically perform many of the same operations. 1) add a new console app to our solution. It doesn't have to be part of our solution, that is just what this demo does. To that console add the standard reference for our friend System.ServiceModel. 2) Open the program.cs (okay, ......

Let's Host our service and build a client

First, let me correct my service implementation. I must have missed my low caffeine light when I wrote the implementation. The code should read str = str.ToUpper(); and str = str.ToLower(); to work. Amazing how returning the string you sent offers little value. Not that this particular service is of great value, but at least now it does what I intended. What we have done so far... So far we have a simple, 3 method web service, using basichttpbindings, sending strings in and out. This should be very ......

I am taking a contract out on WCF...

First, a choice of tools.. I am going to use Visual Studio 2008. I know, it is in Beta, Beta 1 in fact. But Beta 2 should be out soon, and it should release q4 of 2007, q1 of 2008. There might be a tighter date published, but I haven't looked today. It also has a better support for WCF and the .Net 3.5 stuff in general. So, that is where we are going to live. Contract definition As far as I can tell, WCF has four kinds of contracts. (btw, thanks Juval Lowy's book for the list that is coming) Service ......

Time for some serious WCF investigation...

In my job at Microsoft, I am forced to be a generalist, knowing about all development topics. I find it too easy to allow myself to find excuses to not commit the time to go deep and completely understand a topic. But sometimes along come some very intriguing topics that really peak my interest. The current set of technologies in the .net framework, specifically WCF, WPF, WF, and Cardspace were the first to grab my attention. And the Next Gen web UI stuff in the form of Silverlight really needs a ......

So, no takers on working on a list of templates?

Maybe there are enough out there. If so, which ones are they? I mean *.vsi installed, show up in new/project.... dialog. Ones that use the features of asp.net if they are web templates (membership, themes, etc) or good solid winforms apps. Now, take that template and update to .net 3.0. WCF, WPF, WF, CardSpace.... Are they out there? Tell me about them, I will investigate and do a writeup on using them. The beauty of a community is the number of eyes that can find and bubble to the top the good stuff. ......