Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WCF安全问题_C#_Wcf_Wcf Security - Fatal编程技术网

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