Endpoint.Binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport) 参考 [WCF安全系列]绑定、安全模式与客户端凭证类型:BasicHttpBinding