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);

 

posted on 2012-03-14 19:01  @version  阅读(165)  评论(0编辑  收藏  举报