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 3 1525
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.co m
"Vai2000" <no****@microso ft.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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
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.WebE xception 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
.
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.co m
"Vai2000" <no****@microso ft.com> wrote in message news:%2******** ********@TK2MSF TNGP10.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 impersonate="true"/>
2.<authorization>
|
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 trying to fire up one method i
get following error:
System.Web.Services.Protocols.SoapHeaderException: Method
'tns:prodsearch' not implemented
|
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
--
========
Regards
|
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
|
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 impersonation and delegation to forward the user's Windows
login through all layers in the stack. To support this, I'm setting up a
set of domain accounts which we use to create SPNs for the various services
in the various layers.
At this point, I'm...
| |
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 best to use in a situation like
this?
Can ASP.NET State Service be run across 2 servers? What if I used the
|
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 this, how does compiler and
application interpret at run time, and how do I read it and understand what
I should specify if I were to write something similar.
Also, the public function declaration has a return value of
As...
|
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 error below: I am totally
rattled by it, I have given c:\windows\temp Full permission to just about
every a/c on the m/c.
Message-Server was unable to process request. ---Unable to generate a
temporary class (result=1).
error CS2001: Source...
|
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 written/complied for .NET
2.0 and loads all 2.0 dll's from GAC, even when the below error occurs. In
case of space concerns, the Tablet has 10GB or greater of space always. Our
application at no point need more than 10MB of space. The machine is a
Compaq...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |