473,795 Members | 3,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7761
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 "checkAvailabil ity" 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.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: uslec-66-255-112-6.cust.uslec.ne t 66.255.112.6
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 2
.phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :8213
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
3959
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 handle most of the things. Currently I have a class called "Product" sitting my webserivce like the following: Code:
0
1075
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 select queries. 2. Each select queries can be come available in the webservice In this way we could have a dynamic webservice which expose data (with
7
5406
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 filter-object without setting any properties. but the value type-properties can´t be null and the filter is set to 0 (int) or false (bool). therefore i did implement the propertySpecified-pattern like this:
7
1804
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 webservice results in a timeout exception. Meanwhile all my other internet traffic passes normally so the problem implicitly exists between my client and the WebService.
1
2484
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 XML webservice that my eComm app makes the request to. Well, It has to do so over a SSL link. Well...I have multiple SSL sites on my Win2003 machine. Each IIS site has its own IP address so I can bind the SSL Cert to each site. Well, the site...
4
3266
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 get it to work with VS2005 ( It works with vs2003!). Here is my testcase:
2
1657
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, butn using the same class in a web service always results in a FileNotFoundException. I have verified that the file it needs is in the directory where it is expecting it, but I still get the same exception. I added the "HttpContext" line because...
5
2941
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 admit I am rather confused and frustrated. That being said, I'd like some direction in how exactly I'm supposed to accomplish this. Thanks very much, JK
5
1278
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 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\vpmeventswebservice\8c9c80a1\1aef049\assembly\dl3\8c26e22b\fd667eb1_fef7c801\VpmEventViewerServer.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET...
0
9672
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, 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...
0
9519
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,...
0
10214
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10001
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 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...
1
7538
isladogs
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...
0
6780
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3723
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.