
WebService
广交天下好友
这个作者很懒,什么都没留下…
展开
-
webservice不能序列化接口问题,返回值为IList或者参数为接口的解决办法。
1. webservice 不能返回泛型接口集合IList,解决办法如下链接:参考资料:http://www.cnblogs.com/yinhaiming/articles/1379424.html解决方法描述详细,并且多样,可以根据需要决定使用那种办法结局。 2. webservice 参数为接口类型、或者自定义类中有接口变量定义,解决办法如下链接:参考资料:http://转载 2014-08-03 09:37:50 · 1244 阅读 · 0 评论 -
解决WebService 中泛型接口不能序列化问题
本来要定义WebServices 方法返回一泛型接口集合IList,系统提示不能序列化泛型接口集合 1 [WebMethod] 2 public IListEmployee> GetEmployeeList() 3 { 4 IFormatter formatter = new SoapFormatter();转载 2014-08-03 09:37:57 · 5346 阅读 · 0 评论