【目的】研究农情数据在分布广泛、动态变化的网络环境下实现数据共享的技术、方法和解决方案。【方法】使用REST(representational state transfer,表述性状态转移)架构风格解决系统之间松耦合、可扩展等问题。以xml(extensible mark language,可扩展标记语言)和AgroXML为基础设计农情数据结构规范实现不同系统对数据的一致理解。通过开发原型系统验证方案的可行性。【结果】将农情数据合理抽象为网络资源并设计其标识符,基于.net平台使用WCF(Windows Communication Foundation)技术构建了RESTful Web服务,实现了不同系统间的资源获取;通过改进AgroXML的Schema文件制定了农情数据结构规范,初步实现了农情数据表述一致化,并开发了相应的数据解析模块;以新疆生产建设兵团农场农业生产管理数据共享为例,设计开发原型系统验证方案的正确性,讨论其优缺点,并提出了进一步改进的方向。【结论】REST架构风格能够充分解耦服务提供者和使用者,尤其适合于农情数据分布广泛、动态变化的特点,避免了传统分布式技术存在的问题,满足了系统的开放性和扩展性要求,结合统一的数据结构标准,能够很好地实现农情数据共享。
【Objective】Agricultural production management data sharing in the wide distributed and dynamic changing internet environment was studied.【Method】 REST(Representational State Transfer) as an architectural style was used to solve the problems between systems such as loose coupling,extensible etc.Agricultural production management data structure standards which based on xml and AgroXML were designed to realize unified data understanding in different systems.The prototype system was designed to prove the scheme’s feasibility.【Result】Agricultural production management data was reasonably abstracted as internet resources.The RESTful web services were constructed by WCF(Windows Communication Foundation) based on.net technical platform to realize resource access.Agricultural production management data structure standard was established by improving the schema file of AgroXML to realize data representation unifying,and the data analysis module was developed.The prototype system was developed by using agricultural production management data of a farm of the production and construction corps of Xinjiang as an example to prove the correctness of the scheme,the advantages and disadvantages of the scheme were also discussed,finally,the improvement approach was put forward.【Conclusion】RESTful architectural style can uncouple service provider and client,is suited to wide distributed and dynamic changing environment which contains agricultural production management data,avoiding the problems of traditional distributed technology,meeting the openablity and extensibility of system,and combined with unified data structure standard,which could realize agricultural data sharing between systems.