Research on Agricultural Data Sharing Based on REST and XML
Qiong Wang · Zhongguo nongye Kexue · 2012
【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.