This is how I do it (we determine the host and select the appropriate endpoint).
string LocalHostEndpointName = "LocalHost_Endpoint";
string ProductionEndpointName = "Production_Endpoint";
string CurrentEndpoint = "";
string host = Application.Current.Host.Source.Host.ToLower();
host = (string.IsNullOrEmpty(host)) ? "localhost" : host;
switch (host)
{
case "localhost" : CurrentEndpoint = LocalHostEndpointName; break;
default : CurrentEndpoint = ProductionEndpointName; break;
}
webService = new Svc.MyServiceClient(CurrentEndpoint);