你会得到如下的异常提示
分析异常,我们发现wcf序列化后返回的类型,并不是我们预想的List<Terminal>,而是Terminal[],
解决方法,需要设置一下vs的默认配置服务引用
修改数据类型中的集合类型,选择System.Collections.Generic.List(默认为System.Array)
ok,重新编译一下我们的项目,F5运行一下,问题解决