惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LINUX DO - 最新话题
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
T
Tenable Blog
T
Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
Security Latest
Security Latest
P
Privacy & Cybersecurity Law Blog
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
P
Palo Alto Networks Blog
TaoSecurity Blog
TaoSecurity Blog
Webroot Blog
Webroot Blog
Spread Privacy
Spread Privacy
O
OpenAI News
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
C
Check Point Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
人人都是产品经理
人人都是产品经理
S
Security @ Cisco Blogs
Scott Helme
Scott Helme
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
V
V2EX
T
Troy Hunt's Blog
W
WeLiveSecurity
GbyAI
GbyAI
N
News | PayPal Newsroom
Y
Y Combinator Blog
C
Cisco Blogs
H
Help Net Security
The GitHub Blog
The GitHub Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 【当耐特】
Jina AI
Jina AI
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
小众软件
小众软件
N
News and Events Feed by Topic

博客园 - 白夜

fedora 17 安装mono ASP.NET MVC3实践笔记 最近要学习的几篇博文 input file 输入类型检测,及value清空 在网页中集成股票走势 Tomcat 报错 累死了 关于IIS无法启动,World Wide Web Publishing服务无法启动,提示错误127 给Aptana Studio添加aspx页面支持 javascript全局变量失效 模板页当中的js文件加载问题 Jscript运行时错误:没有权限 javascript动态绑定img的src地址 关于IIS无法打开aspx页面的问题 简述WebService与.NET Remoting的区别及适应场合。(转) 关于单实例模式 关于Sys未定以的问题 希望 有关.NET中序列化的一些知识 [转]
关于WebService无法序列化接口的问题
白夜 · 2008-08-21 · via 博客园 - 白夜

今天学习了一下asp.net ajax调用webservice的方面的知识,主要是看了赵劼webcast课程,然后自己练习了一下,在练习课程中第四个实例的时候,发现我单独运行webservice报错,而在客户端调用webservice居然可以返回正确结果。
错误信息如下:

无法序列化接口 System.Collections.Generic.IDictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Employee, App_Code.kymkjpvf, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]。

百思不得其解,运行赵老师的的代码,错误依旧,郁闷,在网上找,老赵的博客看看,恩,有人和我提出一样的问题,结果赵老师没给结果,继续找,发现很多人也有IDictionary无法序列化的问题,很多人都说字典是不能序列化的,最终也没得到一个准确的答案。
自己又认真的思考一下,认为IDictionary不能被序列化的可能性很高,但是为什么在客户端可以访问呢?
仔细回想一下赵老师的课程,课程的最后赵老师说asp.net ajax 客户端调用webservice实际上不是使用的soap协议,而是直接利用反射原理得到对象。
如果是这样,那么这个问题基本上可以解释了,因为asp.net ajax在客户端调用webservice不使用soap协议,哪么就不会使用xml序列化对象,而我们直接调试因为使用了soap协议,所以报错,看似合理的解释,但是毕竟是我这个出学者一家之言,还有待继续验证......
希望能和有类似体验的同仁们讨论讨论......