M
M
Matisumi2019-02-06 19:02:46
.NET
Matisumi, 2019-02-06 19:02:46

Redirecting a WCF Request Using C# - How?

Suppose I have two identical wcf services on my machine (same in contracts and slightly different in functionality, conditionally different versions of the same service), for simplicity, at the addresses localhost/ServiceA and localhost/ServiceB. I want to make a service that would redirect the request to one or the other according to some of its own rules (for our example, this is not very important). The bottom line is that it should respond to an address, for example, localhost/Service and redirect the request to either localhost/ServiceA or localhost/ServiceB and return the response accordingly.
Tell me, in which direction to dig, and in general, maybe there is some simpler way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2019-02-07
@d-stream

Well, that is, you get a third service + client (s), which, depending on the context of the visitor, will be the client (s) to connect to one of the services and then return the result (possibly transforming the answer)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question