一种面向对象的Web Service API框架设计  被引量:1

Design of Object Oriented Web Service API Framework

在线阅读下载全文

作  者:王雄[1] 褚伟[1] 

机构地区:[1]合肥工业大学计算机网络系统研究所,安徽合肥230009

出  处:《计算机技术与发展》2009年第8期54-57,61,共5页Computer Technology and Development

基  金:国家自然科学基金(90718037)

摘  要:通过设计一种面向对象的Web Service API框架,使得Service调用者通过特定的命令和参数可实现对Web Service内部对象的操作,并且这些对象的数据可以通过XML格式返回给调用者。传统Web Service API设计中存在着接口数与对象数正相关的问题,随着系统中对象的增加,面向功能的接口设计方法会不断地增加实现了相应对象操作方法的接口,而面向对象的Web Service API框架可以使用最少的接口实现系统功能,有效地控制了接口的数量,缩短了Web Service调用者的学习曲线。这一框架同时实现了对Session,Cache和事务管理,并且提供安全验证机制,以及数据合法性的验证机制,有效地封装了业务逻辑和数据存取信息。利用这一API框架可以在不增加接口数量的前提下,通过配置文件来添加对象,为系统提供了良好的可拓展性。Web service caller can manipulate the object in the web service by many commands defined by the object oriented web service API framework, and the data of the object will return to the caller by the XML format. In traditional web service API design, there is a problem that the amount of the interfaces are increasing when adding more objects in the system. This function oriented design must add some new interfaces of the object to implement the manipulation of the object's attributes, but the object oriented method can use the limited interfaces to implement the functions of the system, and shorten the learning curve of the web service caller. This framework implements the management of session, cache, and transaction, and applies the mechanism of security validation, data validation, encapsulation of the business logic and the persistence of the data to the database, the system can be extendible by adding oonfigttration files of other objects without increasing any other new interfaces.

关 键 词:Web服务 接口设计 面向对象 应用程序接口 文档对象模型 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象