"Thanapol R." <Thanapol R.@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
Hello all,
I try to listing all web services on local machine like a Microsoft Visual
Studio does in "Add Web Reference" window.
Thanks,
Thanapol R.
You could use classes from the System.DirectoryServices namespace to
enumerate virtual directories and locate .asmx files in those directories. A
Google search on "enumerate virtual directories" should get you started.
Another way is to use the classes in System.Web.Services.Discovery
namespace, most notably DiscoveryDocument. See
http://msdn.microsoft.com/library/de...classtopic.asp
Regards,
Sami