title: Routing calls to legacy ASMX web service through WCF Routing Service
body: <p>I am working on a legacy application that contains references to two .asmx web services.  We want to restructure the service layer to follow more of an Enterprise Service Bus pattern, where the client will direct all of its calls to one service, which handles the routing of the requests to the appropriate services.</p>
  
  <p>I have been working with the WCF Routing Service and have been able to successfully route a call to a WCF service through the RoutingService and on to the appropriate service.</p>
  
  <p>For example, the client can make a call to:</p>
  
  <pre><code>http://routingservice/RoutingService.svc/WcfService
  </code></pre>
  
  <p>and the routing service will forward it along to</p>
  
  <pre><code>http://wcfservice/WcfService
  </code></pre>
  
  <p>through the rules that I specify in configuration</p>
  
  <p>I would like to somehow achieve the same result with the .asmx services to that I can just update the web reference URL in the legacy application to point to the routing service, which will then forward the requests on the to the URL that the client is currently using</p>
  
  <p>Change:</p>
  
  <pre><code>http://webservices/LegacyService.asmx
  </code></pre>
  
  <p>to </p>
  
  <pre><code>http://routingservice/RoutingService.svc/LegacyWebService
  </code></pre>
  
  <p>Is this possible to do in the manner that I am thinking of?</p>