摘要:
信不信由你,无需配置,两个console就好了service side 1.定义ServiceContract:2.new a ServiceHost 3. add endpointusingSystem.ServiceModel;namespaceService{classProgram{staticvoidMain(string[]args){Uriaddress=newUri("http://localhost:8000/myservice");using(ServiceHosthost=newServiceHost(typeof(MyService),address 阅读全文