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> <!--<otherconfig configSource="XmlConfig\other.config" />--> <otherconfig a="/> </configuration> public class OtherConfigInfo : C