1

I need to route WCF data services request from one server to another server. Is it possible to route a request across servers using ASP.NET MVC routing module? What are the options available for routing WCF data services request across servers?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Vijay
  • 513
  • 1
  • 6
  • 16
  • What do you mean by routing in this case? Is it just forwarding or do you need to work with / inspect request itself before you now the target of routing? – Ladislav Mrnka Jun 24 '11 at 13:56
  • I Need to foward the request. There is no need to look into the contents of the request. I coudn't get any example from asp.net routing moudle which routes the request across the servers. All the examples are routing the request within the same web application. Is it posssible to route the request across servers? – Vijay Jun 24 '11 at 14:27

1 Answers1

3

That is not scenario for ASP.NET routing module. Routing module only routes request to handler within same web application. That is not real request router.

What you are looking for is usually performed on network level and it is called reverse proxy. Example of more powerful reverse proxy from MS world is ISA server.

If you don't have such server available (then the question is why do you need this?) using routing module will only allow you to route request to some handler within current application. You will have to implement that handler so that it takes incoming request and uses WebClient to call the real service and return a response.

Edit:

Check also this answer on ServerFault. It describes some modules for IIS allowing functionality of reverse proxy.

Community
  • 1
  • 1
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
  • We looked at the various options and decided to go with Application Request Routing for the scenarion I have mentiond. That solves our problem. – Vijay Jul 15 '11 at 10:17