Browse by Tags
All Tags »
WCF (
RSS)
Here is an example of how to create a message inspector that will inspect every message that the client sends and modify the message body: public class ClientOutputMessageInspector : IClientMessageInspector { #region IClientMessageInspector Members public void AfterReceiveReply(ref System.ServiceModel.Channels.Message reply, object correlationState) { return; } ...
This is an error message I got when I extended WCF with a client inspector. The lifetime of a message only lasts for one use. Once you've looked at the contents of a message, or copied the contents somewhere, you can't read the message again. This is a common problem encountered when people are trying to write a message inspector. Since you're expected to pass the message along after you're done inspecting it, it's quite likely that you'll need to make a new copy of the message...
A really cool tool that was released by Microsoft enables you to take a WCF trace file and a WCF client proxy, or a WCF interface contract, and generates a unit test that replays the same sequence of calls found in the trace file. The code generated is easily modifiable so that data variation can be introduced for the purpose of doing performance testing. The tool generates code for both Visual Studio 2005 and Visual Studio 2008. You can download the tool or the source code from here .
How do you load test you WCF service? Basically, in order to load test any API capable functionality in Visual Studio Team System, you will need to use a Unit Test template. This is a bit confusing. A Unit Test is by definition: "Testing a Unit". In fact there are many other strategies for functional testing, and most “unit tests” written today are not true Unit tests (with a capital U) that isolate and only test a single class, but test from the API down. When we use a unit...
The title is a bit confusing. So, in order to solve that, let me explain the meaning of it. Lets say I have a Client - Server application. The server is hosted in a console application and can perform several operations that are requested from a client application. The client application is a windows application that sends messages to the server using WCF. One thing that I think is extremely important when developing such applications is the acknowledgement process. In other words, I want to know...
Service Oriented Architecture contains 4 tenets: Boundaries are Explicit Services Are Autonomous Services share schema and contract, not class Service compatibility Is based upon policy When someone asks me if he should follow SOA tenets in his design I usually say: "It depends...." And next thing I find myself in, is a long discussion about the pros and cons for going with SOA. In the following post I will provide an argument why I think that SOA is not always the best way to go with....
Here is the lab for the WCF course I gave. In the following lab there are demonstration on how to host two services with HTTP binding and TCP binding. One service should be used by internal clients over TCP while the other should be use by external clients over HTTP. You can download the completed lab here .
Hi, here are the demos for SOA lecture I gave. In the following demo I introduce web services to support SOA Tenets. You can download the demos from here . Enjoy!
Hi, as promised here are the labs for the SOA and WCF course I gave. The following demo I show how to create a client server architecture with WCF, how to work with endpoints, contracts and built-in bindings. You can download the labs from here . Enjoy!
Lately I have been working on a design for a web application. For that application I was going to use .NET 3.5 features, which includes WCF, Linq, XLinq, Linq to Sql and WF. My Data layer had to reside on a windows service which exposes WCF services. One requirement I had to implement was a fail over scenario. In other words a load balancer that can redirect requests to an active data layer. For example: lets say I installed three data layers (each one is a windows service), and there are ten clients...
DinnerNow is a fictious marketplace where customers can order food from local restaurants for delivery to their home or office. This sample is designed to demonstrate how you can develop a connected application using several new Microsoft technologies. The demo utilizes several technologies including: IIS7, ASP.NET Ajax Extensions, Linq, Windows Communication Foundation, Windows Workflow Foundation, Windows Presentation Foundation, Windows Powershell, and the .NET Compact Framework. You can download...