摘要
通过对网格服务快速开发技术的探讨和研究,比较Java源文件和WSDL文档内容之间的对应关系,定义从Java源文件中提取信息的规则,本文利用C++开发一种预处理器,使得用Java语言编写的源文件可通过该预处理器自动生成与之相关的WSDL文档,从而降低服务开发的难度,达到快速开发网格服务的目的。应用MathService服务进行测试表明,该技术不仅顺利生成了WSDL文档,当在Java源文件中加入其它功能时也能够生成符合要求的包含该功能接口类型的WSDL文档,并能够提供包含该功能的服务。
This paper discusses and researches the quick developing technology of grid service. Through researching the corresponding relationship between Java source files and WSDL documents, it defines the regulations of abstracting information from Java source files and puts forward a pretreatment processor by using C ++. Using this pretreatment processor, the service source files written by Java can create a correlative WSDL document automatically. This pretreatment processor can reduce the difference of developing a service, and can achieve the purpose of quick developing a grid service. The test by the service named "MathService" indicates that it can not only create the WSDL document successfully, but also produce the WSDL document which contains other function interfaces and is capable of offering the service which contains that functions when adding them to the Java source files.
出处
《计算机与现代化》
2011年第7期56-59,共4页
Computer and Modernization