当前位置: 代码迷 >> Web Service >> 怎么屏蔽掉一个web services 的wsdl
  详细解决方案

怎么屏蔽掉一个web services 的wsdl

热度:288   发布时间:2016-05-02 02:52:01.0
如何屏蔽掉一个web services 的wsdl?
也就是说,开放web services 的调用,但不开放wsdl

-------------------------------
这样的目地是开放接口调用,不开放接口类型。。。。。。

------解决方案--------------------
什么意思?貌似WCF中有项配置是关闭服务元数据被HTTP GET访问的
<behaviors>
<serviceBehaviors>
<behavior name="WCF.Service1Behavior">
<!-- To avoid disclosing metadata information, 
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="False"/>
  相关解决方案