C# WCF安全问题
鉴于此配置:C# WCF安全问题,c#,wcf,wcf-security,C#,Wcf,Wcf Security,鉴于此配置: <service name="WCFWSHttps.Service1" behaviorConfiguration="WCFWSHttps.Service1Behavior"> <endpoint address="https://localhost/WCFWSHttps/Service1.svc" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="WCFWSH
<service name="WCFWSHttps.Service1" behaviorConfiguration="WCFWSHttps.Service1Behavior">
<endpoint address="https://localhost/WCFWSHttps/Service1.svc" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="WCFWSHttps.IService1"/>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
如何在代码隐藏中添加mex thingi?IMeadataExchange接口公开了返回有关服务的元数据信息的方法,如方法定义、返回类型的数据类型等。基本上,元数据将是Web服务描述语言(WSDL)并帮助客户端使用您公开的服务 因此不需要实现它们,它们内置在WCF中
您可以在此处找到有关InterfaceTe的更多信息IMeadataExchange接口公开了返回有关服务的元数据信息的方法,如方法定义、返回类型的数据类型等。基本上,元数据将是Web服务描述语言(WSDL)并帮助客户端使用您公开的服务 因此不需要实现它们,它们内置在WCF中 您可以在此处找到有关interfacte的更多信息。显示如何在代码隐藏中将ServiceEndpoint添加到ServiceHost。显示如何在代码隐藏中将ServiceEndpoint添加到ServiceHost
WSHttpBinding binding;
ServiceHost svh