public void OnBeforeEachTest() { //Generated proxy when using 'Add Service Reference' on the EndpointUri above. //Thank WCF for the config ugliness var binding = new WSHttpBinding { MaxReceivedMessageSize = int.MaxValue, HostNameComparisonMode = HostNameComparisonMode.StrongWildcard, MaxBufferPoolSize = 524288, }; binding.Security.Mode = SecurityMode.None; client = new Soap12ServiceReference.SyncReplyClient( binding, new EndpointAddress(EndpointUri)); }