Return of .NET  
宠辱不惊,静观堂前花开花落;去留无意,漫随天外云卷云舒。

2011年3月23日

摘要: 信不信由你,无需配置,两个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 阅读全文
posted @ 2011-03-23 13:51 消化酶 阅读(230) 评论(0) 推荐(0) 编辑