NetBeans 6.8 和 RESTful Data Web Services
2009-12-16 14:55
344 查看
表述性状态传输(REpresentational State Transfer)针对分布式超媒体系统的一种构架风格,这种构架的 Web Services 的一个核心就是统一资源定位URIs,这种 Web Services 也被叫做 RESTful Web Services,它虽然不同于基于 SOAP 的 Web Services 但它仍然部署于 Internet 上并提供数据传输和操纵能力, 同时他也被认为是一种轻量的服务。
使用 NetBeans IDE 创建 RESTful Data Web Services 包括创建实体类(Entity Class)并基于实体类创建 RESTful Data Web Services 具体的步骤可参看下面的参考文档:
Getting Started with RESTful Web Services
从上面的例子我们可以看到RESTful Data Web Services不复杂,使用也非常简单,简单到不涉及任何的视图、存储过程和其他数据逻辑,它虽然也可包含数据操纵,但这些操纵仍然限于很简单的应用场景,从实际的应用情况看,除数据传输交换外我实在想不出其它真正需要RESTful Web Services的例子,另一个需要考量的就是RESTful Web Services的可靠性、安全性以及性能,基于个人的实验(大于60000行数据表)性能有些差,主要原因可能是DBMS端数据层优化无法体现到RESTful Web Services实现层(初步研究结果),要在客户端加工整理这些表实体数据并以适当大方式展现给用户其实并不容易,并还要继续损失性能,下面这篇文章介绍了WSDL 2.0和REST Web Services,文章很好,但我对RESTful Web Services的疑惑仍然存在:
http://www.ibm.com/developerworks/cn/webservices/ws-restwsdl/
使用 NetBeans IDE 创建 RESTful Data Web Services 包括创建实体类(Entity Class)并基于实体类创建 RESTful Data Web Services 具体的步骤可参看下面的参考文档:
Getting Started with RESTful Web Services
从上面的例子我们可以看到RESTful Data Web Services不复杂,使用也非常简单,简单到不涉及任何的视图、存储过程和其他数据逻辑,它虽然也可包含数据操纵,但这些操纵仍然限于很简单的应用场景,从实际的应用情况看,除数据传输交换外我实在想不出其它真正需要RESTful Web Services的例子,另一个需要考量的就是RESTful Web Services的可靠性、安全性以及性能,基于个人的实验(大于60000行数据表)性能有些差,主要原因可能是DBMS端数据层优化无法体现到RESTful Web Services实现层(初步研究结果),要在客户端加工整理这些表实体数据并以适当大方式展现给用户其实并不容易,并还要继续损失性能,下面这篇文章介绍了WSDL 2.0和REST Web Services,文章很好,但我对RESTful Web Services的疑惑仍然存在:
http://www.ibm.com/developerworks/cn/webservices/ws-restwsdl/
相关文章推荐
- Oracle REST Data Services (ORDS) 发布 RESTful Web Services 教程
- 通过Ajax方式上传文件,使用FormData进行Ajax请求 博客分类: RESTful Web ServicesWeb前端开发
- RESTFul Web Services for DotNet
- WAS 上的 Data Web Services,第 2 部分:启用传输级别的安全性
- 使用 Spring 3 来创建 RESTful Web Services
- RESTful Web Services: A Tutorial--reference
- Java Restful Web Services (一)
- 使用Jersey框架创建RESTful Web Services
- 使用Jersey框架创建RESTful Web Services
- cxf开发Restful Web Services
- 使用 Spring 3 来创建 RESTful Web Services
- 使用 Spring 3 来创建 RESTful Web Services
- A simple of Using XML Data Source type and Querying a Web Service with Reporting Services 2008
- RESTful Web Services: A Tutorial
- spring-mvc restful web services
- 深入理解RESTful Web Services
- JAX-RS介绍——Java API forRESTful WebServices,JAX-RS的目标是Web Services开发(这与HTML Web应用不同)而Spring MVC的目标则是Web应用开发
- RESTful Web Services
- jax-rs(Java API for RESTful Web Services)实践教程 之二 —— get/post/put/delete/head
- java端RESTful web services的几种实现方式