View Code
string full = Application.Current.Host.Source.AbsoluteUri; full = full.Substring(0, full.LastIndexOf('/')) + "/../WcfService/socketSeismicSurvey.svc"; sc = new ServiceReference.VertexServiceClient(); sc.Endpoint.Address = new System.ServiceModel.EndpointAddress(full);