随笔分类 - WCF
摘要:一般在创建WCF服务时会用Serivce.svc文件访问,地址如:http://localhost/applicationname/Serivce.svc/Name现在用路由映射成:http://localhost/applicationname/MyService/Name 方法如下:首先在Global.asax中的Application_Start事件中添加以下代码: void Application_Start(object sender, EventArgs e) { System.Web.Routing.RouteTable.Routes.Add(new System.Servic.
阅读全文