摘要: 新建console application,添加服务引用,主要Address要到.svc部分。点击Go,找到对应服务后,点击OK。双击ServiceReference2可以看到服务的名称,在Main函数中添加应用,如using ConsoleApplication2.ServiceReference2;调用服务中的函数CallServiceClient client = new CallServiceClient();client.方法名();PS:需要在app文件中作如下设置:<?xml version="1.0" encoding="utf-8" 阅读全文
posted @ 2012-11-19 13:35 ttssrs 阅读(417) 评论(0) 推荐(0) 编辑