Java EE 6: Develop Web Services with JAX-WS & JAX-RS Ed 1 Quiz Questions and Answers

An XML schema simpleType may contain:

Answer :
  • restriction

Which HTTP status code range represents client errors?

Answer :
  • 4xx

Which statement is true about elements in a WSDL document?

Answer :
  • Operation is an abstract description of an action supported by the service.

Extensions to the JAX-RS specification does not include?

Answer :
  • JNI

Which statement is true about resources in JAX-RS?

Answer :
  • All of the above

Which part of wsdl file defines the protocol information?

Answer :

Select benefits of a Top-Down Approach.

Answer :
  • All of the above

What are two best practices that can be implemented when generating WS-I Basic Profile compliant Web services?

Answer :
  • Define data types early in the integration cycle.
  • Test interoperability at every stage of development.

An airline built and deployed a back-end application to manage reservations. To support interoperability with as large a base of standalone client applications as possible, the services provided by this back-end application are exposed as XML-based restful web services. Management added a new requirement that AJAX-based web application clients be supported, too. One of the developers suggested that it is enough to extend the existing application to support both XML-based and JSON-based restful web services. Assuming the developer is correct, choose the sentence that best describes an attempt to introduce this ability as this developer suggests (Choose one):

Answer :
  • The attempt will be trivial to implement, since JAX-RS just needs for the application to specify that both XML- and JSON-based interaction will be supported.

For what is WADL specially created?

Answer :
  • Rest web Services