Vai2000,
Personally, I think that this is something that should be handled in
hardware. Basically, you would set up a web farm, and the hardware
servicing the request would be responsible for determining which machine
would service it, based on availability (in which case an outage would mean
there is none for that one machine).
However, if you must do this in software on the call side, I would just
wrap the call in a try/catch block, and if an exception occurs (which
indicates the machine is down), I would make the call again, making sure
that the service that the proxy is pointing to is the one on the backup
machine.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Vai2000" <no****@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All, I have a box outside the DMZ that calls my WebSvc 's. I have 2
boxes
running the WebSvc's though one is like backup (so both don't run
concurrent).
Incase of outage when the first box is not responding I want to call the
WebSvc from the Box No.2
How do I accomplish that..?
Q. How can I detect that my WS on Box1 is down?
Q how can I call WS from Box2?
For now...I have made the property of WS to be dynamic and the WSDL is in
the Web.config of the Caller.
TIA