C# static void Main(string[] args) { //创建宿主的基地址 Uri baseAddress = new Uri("http://localhost:8080/User"); //创建宿主 using (ServiceHost host = new ServiceHost(typeof(User), baseAddress)) { host.AddServiceEndpoint(typeof(IUser), new WSHttpBinding(), &…
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <!-- In a config file where there will (potentially) be more information stored beyond just the log4net configuration information, you will n…