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