all groups > dotnet web services enhancements > october 2006 >
You're in the

dotnet web services enhancements

group:

I want to Dynamically Discover Web Services



I want to Dynamically Discover Web Services John Paul. A
10/21/2006 6:50:02 PM
dotnet web services enhancements: Hi,

I have a 3rd party web service running in a Web Server within our network.
The web service sends "Hello" message when joins the network and also sends
"Bye" message when leaves the network.
I want to write a client code to receive the "Hello" message as well as the
"Bye" message sent by the web service.
Can you please suggest me a sample code, so that I can discover (dynamically
discover) the web service using the multicast discovery protocol (using
WS-Discovery).

Development Environment : VS 2005, .NET 2.0 and WSE 3.0

Thanks in Advance

Re: I want to Dynamically Discover Web Services Pablo Cibraro [MVP]
10/23/2006 10:17:04 AM
Hi John,

As far as I know, there isn't any implementation of WS-Discovery for WSE. It
also looks a kind of hard to implement.
Today, I came with this post, which describes that problem for WCF (The same
concepts applies for normal web services).

http://blogs.msdn.com/drnick/archive/2006/10/20/keeping-connections-open-in-iis.aspx

Regards,
Pablo Cibraro.

[quoted text, click to view]

Re: I want to Dynamically Discover Web Services Dave Roth [MS]
11/14/2006 12:58:06 AM
Vista does implement WS-Discover, however it is not part of WCF, instead it
is part of WSDAPI (http://msdn2.microsoft.com/en-us/library/aa826001.aspx).
There are two options to access it: directly call into WSDAPI's interfaces
or you can very simply call into Function Discovery
(http://msdn2.microsoft.com/en-us/library/aa363892.aspx). Unlike WCF,
niether of these solutions are managed.

If you simply want your application to detect when the service comes
online/goes offline using WS-Discovery then look into Function Discovery.

--
Dave Roth [MS]
Program Manager
Web Services on Devices
================
This posting is provided "AS IS" with no warranties, and confers no rights.
The use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

[quoted text, click to view]
AddThis Social Bookmark Button