利用9.3+flex做QueryTask时候出现了[RPC Fault faultString="Error #2032: 流错误]的错误,原因如下:
在ArcGIS 9.3.1的环境下,初始化QueryTask时,需要将UseAMF设为false
在ArcGIS 10及以后的版本中,将UseAMF设为true,这样能够很大程度上的提高Flex的数据传输速度.
帮助文档原文如下:
Use AMF for execute() and executeRelationshipQuery(). Requires the server to be ArcGIS Server 10.0 or above, set to false if using
earlier server versions. When useAMF is true, the BaseTask properties concurrency, requestTimeout and showBusyCursor are ignored。

在ArcGIS9.3环境中遇到使用flex执行QueryTask时出现流错误的RPC故障,通过设置UseAMF参数为false在早期服务器版本中解决问题,而在ArcGIS10及以上版本中,将其设为true以提高Flex的数据传输速度。

1733

被折叠的 条评论
为什么被折叠?



