wcf路由服务

问题描述:

问题...。我如何才能公开我的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,以及我的要求是我想公开所有端点... –

检查以下MSDN thread,它可以帮助你,但是从使用WCF RoutingService我的经验,我也不会转回去投入太多的精力,除非你的要求是一个完整的必须有