This sample is no longer supported, please use WS-Discovery implementation shipped as part of .NET 4.0 (http://msdn.microsoft.com/en-us/library/dd288697.aspx).
The sample implementation of WS-Discovery protocol is now available at http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=netfxsamples&DownloadId=3940
Using this sample you can publish and find WCF services using WS-Discovery protocol. Please either submit your feedback directly on the sample page or send it to me (vipul.modi@microsoft.). Your feedback will help in designing the discovery APIs for the next release.