private string GetBestDiscoveryUrl(Uri clientUrl, BaseAddress baseAddress)
{
string url = baseAddress.Url.ToString();
if (baseAddress.ProfileUri == Profiles.WsHttpXmlOrBinaryTransport || baseAddress.ProfileUri == Profiles.WsHttpXmlTransport)
{
url += "/discovery";
}
return url;
}