473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

WebSvc Failback!

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
Nov 16 '05 #1
3 1502
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

Nov 16 '05 #2
In case the 'switching' part is not clear...

Make the web reference static, and point it towards the
first web service. If that call fails, simply change the
URL property of the web service proxy to point to
your 'fallback' web service and try again.

Also note that you can use the Timeout property of your
web service proxy to control how long you wait for the
first web service to return before trying the second one.
The proxy will throw a System.Net.WebException with a
message of 'The operation has timed-out.' if the time is
exceeded.

Good Luck,
John Bendiksen
-----Original Message-----
Hi All, I have a box outside the DMZ that calls my WebSvc 's. I have 2 boxesrunning the WebSvc's though one is like backup (so both don't runconcurrent).
Incase of outage when the first box is not responding I want to call theWebSvc 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 inthe Web.config of the Caller.
TIA
.

Nov 16 '05 #3
I agree - I don't think this is something that should be handled by the
client calling the service.

Handling it in hardware would be ideal, however most network hardware that
will do this sort of failover is very expensive. Depending on what OS these
two systems are running on, you may wish to look into the Network Load
Balancing Service in Windows. This is available in the standard edition of
Windows Server 2003, however I believe in the Windows 2000 Server platform,
it's only available in the enterprise edition. If you're already running two
systems that support this functionality, you may be able to achieve what you
want without having to change your client and without the expense of
additional hardware.

Cletus
"Nicholas Paldino [.NET/C# MVP]" wrote:
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


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robin Chatterjee | last post by:
Hi, I am constantly getting this error inspite of all that i do. Pls help if you can ASAP. My environment is 1. In the Webconfig i have <authentication mode="Windows"/> <identity...
2
by: Artur | last post by:
Hi Newsgroup, im currently working on programming a asp.net application consuming an Webservice hosted on Apache/Axis. I have generated WSDL and Proxy classes from VisualStudio.net. But when...
2
by: Vai2000 | last post by:
Hi All, I am trying 2 invoke a websvc dynamically. All I will have is the WSDL. I want to avoid the design time programming (i.e adding web reference etc). How will I achieve this goal? TIA ...
1
by: Vai2000 | last post by:
If I edit a proxy of web service in my asp.net application do I need to recompile the ASPX Project? If not then how will the change get in affect? TIA
2
by: russell.lane | last post by:
I'm building out a pretty standard n-tier web application. The stack includes application/presentation, biz logic, and data access layers on top of an SQL server back end. We want to use...
2
by: Ian Jenkins, MCSD | last post by:
I have a web farm set up using NLBS. I need to manage sessions in one central location. As I see it I have 2 options: SQL SERVER ASP.NET State Service Which has better performance? What is...
2
by: rJ | last post by:
I performed wsdl on SQL2000 reporting service and have a question regarding the following proxy class. Right before render procedure declaration you have code that looks like html or xml. What is...
2
by: Vai2000 | last post by:
Hi All, I have a COM+ Component that calls a webservice internally. It works super on Windows 2000, unfortunately when I deployed this application to Windows 2003 Standard Server, I am getting the...
12
by: VJ | last post by:
Here is a problem that happened about a few times, on non-development Windows XP Tablet PC with SP2, running NET Framework 2.0 and 1.1. The windows application invoking the web service was...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.