最近项目中,用到动态调用webservice的内容,此处记录下来,留着以后COPY(我们只需要在XML,config文件,或者数据库中配置webservice连接地址和方法名即可使用): using System; using System.CodeDom; using System.CodeDom.Compiler; using System.Collections; using System.Collections.Generic; using System.Configuration; u
直接上代码 public string GetUserInfoByOpenid(string openid) { var weixinuser = new WeiXinUser(); weixinuser.NickName = user.NickName; weixinuser.HeadImg = user.HeadPhoto; var data = Newtonsoft.Json.JsonConvert.SerializeObject(weixinuser); string callbackM