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
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
What is a valid reason for Using SOAP web services?
Answer :
Decouple message representation from transport
mechanisms
Which of the following two EJB types can be used as web service endpoints? (Choose two.)
Answer :
Stateless Session EJB
Singleton Session EJB
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?