Creating WCF Services Experience

Ok I first lab I did was creating a service contract with a simple operation and implemented it on a service type. Next I had to create a host application and finally a client application.
So let’s recap here what I have done:
These 3 steps and one creates a WCF service and it can be run (called). The lab I did was from the book 'Learning WCF' from O'Reilly written by Michele Leroux Bustamante. She also has a site where you can download code used in labs. When I tested my client that calls the service I ran into an error: TCP error code 10061: No connection could be made because the target machine actively refused it. From this I learned that I had to start the host project first, followed by client project. Now it worked. On web there are also a nice article on code project that let you explore Windows Communication Foundation. I tried this out and it worked. Approach was a bit different, because here a configuration file was used for the host. In this case one use svcutil to create proxy code and configuration items. I did run into another problem, when using svcutil. Their solution though I found here at this blog post. By running sn -Vr svcutil inside C:\Program Files\Microsoft SDKs\Windows\V6.0A\Bin folder it will work (thanks to Nishith Pathak).
Technorati:
Comments