Exam Set: 1
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 just 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):
A. The attempt wil fail, because JAX-RS does not support both XML- and JSON- based restful
services in parallel.
B. The attempt wil be trivial to implement, since JAX-RS just needs for the application to specify
that both XML- and JSON-based interaction will be supported.
C. The attempt can succeed, but it wil require a significant amount of new code, since JAX-RS
does support both XML- and JSON-based interaction - but not single resource can support both
kinds of interaction simultaneously.
D. The attempt wil fail, because there is more to the difference between XML-based and JSON-
based interactions than just the data representation used.
A company is refactoring an existing website to use Web services clients. The application
retrieves lists of parts and displays them to the users in a browser window. Previously, the data
was stored as files on the web server and, in order to access the files, the user would simply
click on a hyperlink. Now the data must be dynamically generated via a service that another
developer has created. They want the easiest way to refactor their website to use Web services.
Which three client-side technologies should they use? (Choose three.)
In the code fragment below, the client will use os to upload data to the web service provider.