WCF testing notes
Health Monitoring: https://blogs.msdn.microsoft.com/rahulso/2006/04/13/health-monitoring-for-applications-lifetime-related-events-in-asp-net-2-0/ Ignore Security: https://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-channel-soap Intercept WCF response/request: https://stackoverflow.com/questions/3879199/intercept-soap-messages-from-and-to-a-web-service-at-the-client/13779722#13779722 DataContractSerializer Reference: https://msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer(v=vs.110).aspx 例子: var binding = new WSHttpSecurity(); var endpoint = new EndpointAddress("https://XXXXXXXXXXXX.svc"); System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; var channelFactory = new ChannelFactory<IXXXService>(new WSHttpBinding(SecurityMode.Transport, false), endpoint); ...