WSHttpBinding Wshb = new WSHttpBinding();//使用的协议必须与wcf服务端所用的协议相同
EndpointAddress Epo = new EndpointAddress(APIUri); //这里请改回你当时的wcf服务器地址

//创建连接通道

(客户端服务名字+Channel) user =new ChannelFactory<客户端服务名字+Channel>(Wshb, Epo).CreateChannel();

 

 return user.你的wcf方法(参数);

posted on 2009-06-19 14:26  Daan  阅读(1432)  评论(0编辑  收藏  举报