调用webservice时提示对操作的回复消息正文进行反序列化时出错

调用webservice时提示对操作的回复消息正文进行反序列化时出错。

主要原因webservice返回值的长度超过readerQuotas中的了maxStringContentLength值,造成返回值截断,不完整,反序列化时出错。

       <readerQuotas maxDepth="32" maxStringContentLength="81920" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />

解决方案:调整maxStringContentLength的值

posted @ 2012-09-27 20:04  虎头  阅读(1145)  评论(0编辑  收藏  举报