473,499 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Service Validation

Is there a way to verify a web service is up before executing function calls from a windows based application against it? I have heard of programs hanging while trying to connect to a service that is not available. How can I guard against this using c#?

Respectfully,

Dean Bortell
Nov 16 '05 #1
2 1760
Due to the very nature, you will never know :(. If you just want to see if
the machine is reachable, you could try pinging it. Of course, this doesn't
mean the service is/isn't available. The only REAL way to know if a method
call will succeed is to do it.

However, the app shouldn't hang if method calls are done asyncronously. Why
not look into doing it that way instead?

-Michael
MVP
"Dean Bortell" <De*********@discussions.microsoft.com> wrote in message
news:A1**********************************@microsof t.com...
Is there a way to verify a web service is up before executing function
calls from a windows based application against it? I have heard of
programs hanging while trying to connect to a service that is not
available. How can I guard against this using c#?

Respectfully,

Dean Bortell

Nov 16 '05 #2
On 06 Jul 2004 05:33, "Michael Giagnocavo [MVP]" wrote:
Due to the very nature, you will never know :(. If you just want to see if
the machine is reachable, you could try pinging it. Of course, this doesn't
mean the service is/isn't available. The only REAL way to know if a method
call will succeed is to do it.

However, the app shouldn't hang if method calls are done asyncronously. Why
not look into doing it that way instead?

-Michael
MVP


I guess it could take a while if the timeout is set high enough. I have
seen some calls taking some time to return an exception - but eventually
they all do return.
--
Simon Smith
simon dot s at ghytred dot com
www.ghytred.com/NewsLook - NNTP Client for Outlook
Nov 16 '05 #3

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

Similar topics

3
1390
by: arc | last post by:
I have a server object that performs zipcode validation based on zipcode entered in the web form. Ideally this should work as follows: Once the zip code is entered in the edit box it should...
8
7171
by: Marc | last post by:
Hi! I'm calling a web service using C# and a wrapper class generated by wsdl tool. The web service specification contains some nillable parameters which types are Value Types in .NET (long, int,...
4
2802
by: Allen McGuire | last post by:
Any ideas would be great - I hope I provide enough information here. I'm getting a bit frustrated - I'm a newbie in the .NET programming arena. Full Error returned from VWD 2005 Express Beta:...
1
3599
by: Jackie W | last post by:
Has .NET any XML-based validation framework or tool classes to validate parameters passed to an Web Service? I need only couple of types validation - is parameter passed to Web Service method...
1
1445
by: Jackie W | last post by:
Has .NET any XML-based validation framework or tool classes to validate parameters passed to an Web Service? I need only couple of types validation - is parameter passed to Web Service method...
0
2158
by: pwilliams | last post by:
NCOALink Change of Address Verification Each year over 40 million Americans change their mailing addresses. This change is equivalent to every person in California deciding to change addresses...
10
1935
by: NikitaTheSpider | last post by:
Hi all, I would like to announce the alpha release of a service that does bulk/batch HTML validation, link checking and more. During alpha testing, the service is free -- I need people to try this...
3
6597
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
0
1255
by: aliback9 | last post by:
I am writing a web service that takes in an XML string that will then be validated with an XSD. I need some help, as this is my first web service and first try at validating xml with xsd. Here is...
2
5616
by: Ben Joyce | last post by:
Hi all. I'm confused as to what the best or expected approch is to Web Service design under .Net, mainly with regards to Methods and Parameters. This is a bit awkward to explain so please bear...
0
7132
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
7009
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
7178
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
7223
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
7390
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
5475
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,...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1427
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 ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.