2011-08-05 122 views
0

問題...。我如何才能公開我的Wcf服務的端點,從路由器服務到客戶端... 我的路由服務僅將IRequestReplyRouter暴露給我的客戶端。我希望我的路由服務能夠揭露我的服務的端點... 路由器服務web.config如下所示wcf路由服務

 <?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <system.web> 
<compilation debug="true" /> 
    </system.web> 
    <system.serviceModel> 
<services> 
    <service name="System.ServiceModel.Routing.RoutingService" behaviorConfiguration="routing"> 
    <endpoint address="" binding="basicHttpBinding" contract="System.ServiceModel.Routing.IRequestReplyRouter"/> 
    </service> 
</services> 
<behaviors> 
    <serviceBehaviors> 
    <behavior name="routing"> 
     <routing filterTableName="filtertables"/> 
     <serviceMetadata httpGetEnabled="True"/> 
     <serviceDebug includeExceptionDetailInFaults="False" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors> 
<routing > 
    <filterTables> 
    <filterTable name="filtertables" > 
     <add filterName="all" endpointName="WCF_QtrwiseSalesService" /> 
    </filterTable> 
    </filterTables> 
    <filters> 
    <filter name="all" filterType="MatchAll"/> 
    </filters> 
</routing> 
<client> 
    <endpoint 
       name="WCF_QtrwiseSalesService" binding="netTcpBinding" 
        address="net.tcp://localhost:8523/Design_Time_Addresses/BackUpList1/Service1/" 
        contract="*"> 
    </endpoint> 
</client> 

+0

你不能,你想要做什麼,或者你的實際錯誤是什麼? – Dominik

+0

沒有錯誤,我的路由服務只暴露IRequestReplyRouter,以及我的要求是我想公開所有端點... –

回答

0

檢查以下MSDN thread,它可以幫助你,但是從使用WCF RoutingService我的經驗,我也不會轉回去投入太多的精力,除非你的要求是一個完整的必須有