Posts tagged with WCF


Here is quick and dirty way of logging raw SOAP messages before they go out to the server. Create class that implements IClientMessageInspector public class SimpleMessageInspector : IClientMessageInspector { private readonly StreamWriter _streamWriter; public SimpleMessageInspector(StreamWriter streamWriter)…

I needed to make a WCF project more unit testable by isolating dependencies. For the most part with nice Ninject extensions for WCF it wasn't too difficult, but I had a couple of hicups due…

I was writing integration test for WCF service and needed to host my service: [TestFixture] public class RealHostTests { private ServiceHost _host; private Uri _baseAddress = new Uri("http://localhost:8080/dev"); private Client.ServiceClient _client; [SetUp]…