By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,383 Members | 2,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,383 IT Pros & Developers. It's quick & easy.

Check to see if webservice exists?

P: n/a
aaa
What is the most efficient way to do a check to see if a webservice exists
before attempting to execute. I was thinking of just creating an HTTP object
then initiating a request to see if i get a response back from the server.
Is this too much overhead, and how would you imlement this?
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

There really is no way to do this kind of check. There are so many
possible variables. For instance, someone could have port filtering
enabled, preventing unauthorized calls or unexpected calls from placing
load on a server. Even in an ASP.Net based service, one can disable the
automatic documentation, the WSDL generation, etc, so there is no reliable
way to determine this.

The same holds true for any web based resource. There is no way, other
than trying to access the specific resource, to determine if it is present
at a given moment.

From a best practice perspective, I cannot advise just calling a service to
see if it is alive - because you may not want to make the call at the time
you are checking to see if it is available. A good practice for a service
designer is to create a "checkAvailability" method, and advise all of their
partners that the method is available for determining things such as the
service status, service responsiveness, etc.

In a distributed world, there are no guarantees, so that the designers of
applicaitons that are distrubuted MUST accommodate the possibility of a
given node/service being unavailable.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: "aaa" <aa*@nospam.com>
Subject: Check to see if webservice exists?
Date: Mon, 20 Dec 2004 14:18:04 -0500
Lines: 6
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <uh**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: uslec-66-255-112-6.cust.uslec.net 66.255.112.6
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8213
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

What is the most efficient way to do a check to see if a webservice exists
before attempting to execute. I was thinking of just creating an HTTP object
then initiating a request to see if i get a response back from the server.
Is this too much overhead, and how would you imlement this?

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.