`
iloveflower
  • 浏览: 78949 次
社区版块
存档分类
最新评论
  • iloveflower: 呵呵。好好学习。。。。。。。。。。。。
    java 读书
  • Eric.Yan: 看了一点,不过是电子版的……你这一说到提醒我了,还要继续学习哈 ...
    java 读书

REST Web Service Interview Questions

阅读更多
Here I am putting 20 REST questions. Please read some tutorial on REST before taking up these questions. Simply mugging up the answers will not give you the confidence for interview.

Some questions may not be applicable to eveyone. For example if you have used anything else than CXF or RESTLET for building REST web services then the question number 15 may not hold good for you

If you are unable to get answer to any of the question, do drop a comment, I will be more than happy to get back with the answer...

1) What is a web service?

2) Can I use GET request instead of PUT to create resources?

3) What is the difference between a RESTful web service (on HTTP) and a HTTP Servlet both of which perform the same function?

4) How will you migrate from SOAP web service to RESTfull web service?

5) What is the difference between HTTP POST and PUT requests?

6) What all kind of output formats can one generate using RESTful web service?

7) What all tools have you used to write RESTful web service?

8) Can my web browser be a client to RESTful web service? If yes then how will you generate DELETE request from web browser?

9) What is meant by JAX-WS and JAX-RS?

10) How is JAXB related to RESTful web services?

11) How will you handle synchronization issues when multiple clients try to consume web service simultaneously?

12) Can you describe any one RESTful web service you have written?

13) What will you do when an error code has to be returned to the client

OR

How will you handle application error scenarios in RESTful web service

14) Is it mandatory to use HTTP protocol for performing CRUD operations by a REST based web service?

15) What are the pros and cons of using the RESTLET framework than CXF for writing RESTful web service?

16) Can one RESTful web service be a client to another RESTful web service for performing business operations? Describe with example?

17) Can you generate HTML output from a RESTful web service? How?

18) Can a RESTful web service generate output in various formats based on some parameter received from the client.

19) With a RESTful web service, whose state is getting transferred and how?

20) Who owns the specification for REST web services and how does it get updated to newer versions?

From http://extreme-java.blogspot.com/2011/05/rest-web-service-interview-questions.html

***************************************************************

Zqudlyba Navis replied on Mon, 2011/05/23 - 5:59am

If you claim to be doing REST without doing HATEOAS, you're not doing REST at all. The ultimate test for REST compliance at the highest level is HATEOAS.
分享到:
评论

相关推荐

    MyEclipse REST Web Service 简单的实现例子

    【标题】:MyEclipse REST Web Service 简单实现案例 在当今互联网技术日新月异的时代,REST(Representational State Transfer)架构风格已成为构建Web服务的重要方式,它强调资源的表述和状态转换,简单易用且...

    Spring 4 + REST Web Service + JSON Example with Tomcat

    我们将学习如何使用Spring 4与REST Web Service来获取JSON响应。Spring 4 Web Service类用@RestController 进行注释, 可以取代@Controller和@ResponseBody的使用。要映射REST Web服务URL,请使用注释@...

    基于Express的违章查询REST Web Service设计与实现.pdf

    【基于Express的违章查询REST Web Service设计与实现】 在当今的互联网时代,交通管理服务的信息化已经成为提升公共服务质量的关键。违章查询作为一项重要的便民服务,允许驾驶人方便地在线查看和处理违章信息。...

    基于Express的违章查询REST Web Service设计与实现.docx

    【基于Express的违章查询REST Web Service设计与实现】 在当今的互联网时代,交通违章查询服务已经成为交通管理部门不可或缺的一部分,方便驾驶人随时随地获取违章信息。随着移动互联网的快速发展,各种智能设备...

    REST Web Service开发实践

    在当今的软件开发领域,REST(Representational State Transfer)Web服务已经成为构建分布式系统的重要方式,因其简洁、灵活且易于理解的架构风格而备受青睐。RESTful API设计模式允许通过HTTP协议来操作资源,从而...

    rest web service

    RESTful Web服务是遵循REST原则的Web服务,它通过HTTP方法(GET、POST、PUT、DELETE等)来操作资源。这种设计模式使得Web服务更加轻量级、高效且易于理解和实现。 Ajax(Asynchronous JavaScript and XML)是构建...

    Jersey Java规范下REST风格Web Service开发框架

    Jersey Java 规范下 REST 风格 Web Service 开发框架 Jersey 是一个基于 Java 规范的 REST 风格 Web Service 开发框架,旨在帮助开发者快速构建 REST 风格 Web 服务。Jersey 是 JAX-RS(Java API for RESTful Web ...

    Jersey Rest Web Service 例子源码

    REST(Representational State Transfer)是一种轻量级的 Web 服务设计模式,它强调通过HTTP协议来传输数据,简化了客户端和服务器之间的交互。 1. **JAX-RS 基础** JAX-RS 是 Java 平台上定义 RESTful Web 服务的...

    Rest-Web-Service-Client_v3.6.0.crx.zip

    首先,"Rest-Web-Service-Client_v3.6.0.crx"是一个Chrome浏览器扩展,用于测试和调试RESTful Web服务。CRX文件是Chrome浏览器的插件或扩展的打包文件格式,它包含了一款扩展的所有必要资源,如HTML、CSS、...

    WCF WebHttp REST Entity Service

    **WCF WebHttp REST Entity Service** 是一个基于Windows Communication Foundation (WCF) 技术的Web服务实现,它专门设计用于构建RESTful风格的应用程序。REST(Representational State Transfer)是一种架构风格,...

    Rest-Web-Service-Client_v3.6.0.crx

    基于REST的Web服务客户端是一款功能强大的谷歌浏览器插件,使用基于REST的Web服务客户端(模拟REST客户端)可以让用户使用谷歌浏览器模拟REST请求来测试REST风格,这款插件使用非常方便,欢迎大家来下载使用!

    JAVA+SPRING Rest web service

    介绍了使用jersey集成spring与hibernate实现的restful开发

    gs-rest-service, 构建 RESTful Web服务.zip

    gs-rest-service, 构建 RESTful Web服务 标记项目的实验剩余弹簧框架使用-> http://beta.codenvy.com/f?id=9fq0busbm3tz7i8c 你的浏览器的代码 inside 。目录你将构建什么。你

    蓝凌标准产品V16.0管理员手册-RestService服务管理.pdf

    蓝凌标准产品V16.0管理员手册-RestService服务管理 蓝凌标准产品V16.0管理员手册-RestService服务管理是蓝凌标准产品的一个重要组件,旨在提供一个统一的服务管理平台,帮助管理员更好地管理和维护系统。下面是该...

    Java完整的Web Service示例代码,学会做web service程序

    Web服务是一种基于标准协议(如SOAP、REST等)的接口,允许不同的应用程序之间进行通信和数据交换。在Java中,创建Web服务是一个广泛使用的技能,特别是在J2EE(Java 2 Platform, Enterprise Edition)环境中。本...

    web service ppt

    REST(Representational State Transfer)是一种与SOAP不同的Web Service设计风格,它强调资源的表述和状态转换,通常使用JSON作为数据交换格式,比SOAP更简洁,更易于理解和实现。XML-RPC(XML Remote Procedure ...

    XML Web Service开发

    除了传统的SOAP-based Web Service,还有REST(Representational State Transfer)风格的Web Service,它使用HTTP方法(GET、POST、PUT、DELETE等)直接操作资源,更简洁,更适合于互联网应用。 九、实例分析 通过...

    蓝凌标准产品V15.0管理员手册-RestService服务管理

    RestService服务是一种基于Web的服务,提供了统一的接口来访问蓝凌标准产品V15.0的各种服务。 2.2.1 下载 JAVA 客户端 下载JAVA客户端是服务操作的重要组件,管理员需要了解如何下载JAVA客户端,以便正确地使用...

Global site tag (gtag.js) - Google Analytics