簡體   English   中英

在Web配置中未指定地址或基址的情況下列出WCF服務地址

[英]List wcf service addresses when no address or baseaddress is specified in the web config

當Web配置中的service節端點未指定地址或基址時,如何從Visual Studio解決方案中的每個項目中獲取所有wcf 4.0服務地址? 我打算將服務地址列表寫到aspx頁面。 任何幫助,將不勝感激。

這是Web配置中服務部分之一的示例。

<services>
<service name="ABC.Enterprise.Flight.FlightService">
<endpoint address="" binding="basicHttpBinding" name="ICRMManagement"                contract="ABC.Enterprise.Flight.IFlightService"/>
    <endpoint address="MexBasic" binding="mexHttpBinding" name="MexBasic" contract="IMetadataExchange" />
  </service>

您可以使用WCF Discovery在運行時查找終結點...

http://msdn.microsoft.com/en-us/library/dd456791.aspx

暫無
暫無

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

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