簡體   English   中英

在wsdl中隱藏一項WCF服務

[英]Hide one WCF service in wsdl

我有幾種方法都有自己的wsdl。 它們在例如SoapUI中可見。 我想實現新服務,但是我想將它隱藏在wsdl中,但是我想調用它。

那可能嗎?

是的。 只需告訴WCF您不想在服務配置中公開元數據即可:

<system.serviceModel>
  <services>
    <service behaviorConfiguration="MyServiceBehavior" name="MyService">
      <endpoint address="http://MyService:8888" binding="wsSomeBinding" contract="IMyServiceContract" />
    </service>
  </services>
  <behaviors>
    <serviceBehaviors>
      <behavior name="MyServiceBehavior">
        <serviceMetadata httpGetEnabled="false"/>
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM