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)…