Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

Detecting availability of web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Russ - 14 Feb 2005 23:35 GMT
Are there any code samples out there which detect the presence of a web
service..ie windows app on a laptop which is able to talk to web services. If
the laptop is offline, detect that the service is unavailable and  prevent
actions which would call the web service.  

I have looked at the MS Smart Client App Block, but it seems like there's
screeds of code to basically check if there is any network connection..
ideally I'd like to check for a network connection, if there is one, check
for the web service..

I'm thinking that a dedicated thread, created at app start, which
periodically checks the net/web service availability asynchronously would be
the way to go?  To detect the presence of the web service, could I add a web
method which simply returns true (eg. serviceIsAvailable() ) , and put the
call to the service in a try catch?

Thanks

Russ
William Stacey [MVP] - 15 Feb 2005 02:43 GMT
I think Whidbey will be including network conn test/event.  Until then, not
sure.

Signature

William Stacey, MVP
http://mvp.support.microsoft.com

> Are there any code samples out there which detect the presence of a web
> service..ie windows app on a laptop which is able to talk to web services. If
[quoted text clipped - 15 lines]
>
> Russ
Dilip Krishnan - 16 Feb 2005 05:19 GMT
Hello Russ,
  You would need to write a HttpModule to check that or use a soap stack
like WSE and intercept messages and return service status responses based
on a custom soap header that you pass in

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> Are there any code samples out there which detect the presence of a
> web service..ie windows app on a laptop which is able to talk to web
[quoted text clipped - 16 lines]
>
> Russ

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.