473,376 Members | 1,061 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,376 software developers and data experts.

Check to see if webservice exists?

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
1 7722
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Andy | last post by:
Make the story short, I have a VB.NET client interface calling .NET webservice, written in VB.NET as well. I am trying to make the client as thin as possible so I let the webservice part to...
0
by: Taja | last post by:
Hi, I'm looking for a solution which can expose query's via webservice, with the following approach: 1. Administration part which allows the user to connect to a datasource and define some...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i donīt want to filter the return value of the method, i have to pass a new instance of the...
7
by: Robbert van Geldrop | last post by:
Hello, I have a problem in a C# client that consumes a webservice which is wrapped by WSE 2.0 sp3: The WebService works fine but very rarely my client comes in a state where every call to the...
1
by: Ezz | last post by:
I have an interesting problem...and its one of those where I know what I want but don't know how to ask it =) I have an eCommerce application that uses Paypal for its payment gateway. It is an...
4
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= | last post by:
Hi everybody, I've got two questions about using the EnableSession property with an ASP.NET WebService: First Question: I'm trying to create a web service with EnableSession=true. I can't...
2
by: j | last post by:
I'm using a static class to read (from an XML file) some 'frequently used' settings that will be shared in both console applications and web services. The class works for console applications,...
5
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I...
5
by: eschneider | last post by:
I get the following error when I build, anyone know what the problem is? Error 1 The type 'VPMEventViewerUtil.DataTransferObject' exists in both...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.