Hi,
Basically, in the client proxy that is refering to a web service, i want to
be able to switch automatically and transparently, from one URL to another
(location of the mirrored service) when the primary or existing web service
fails.
I have attempted to do this by creating a customized proxy, which performs
the desired operation by catching a WebException and then switching the Url
from the primary web service to the secondary. However, i have hit a problem
with asynchronous method calls, since the WebException is not delivered to
the proxy.
And also with the asynchronous method call i am planning to have a queue
that holds all requests until the proxy has reassigned itself to the
secondary web service successfully, and then deliver all the methods calls in
the queue.
My questions are:
- is there a better method of switching web services (WS) from a primary WS
to a secondary WS when one becomes unavailabe?
- is there a way of catching the WebException from the client proxy for
asynchronous calls, since i imagine that the exception itself is delivered on
a different thread?
thanks in advance
Thanks in advance.