Deck 14: Understanding REST Services and Web Services in Spring Framework

Full screen (f)
exit full mode
Question
Publishing an application's data as a REST service requires.

A)@requestmapping
B)@pathvariable
C)all of the mentioned
D)none of the mentioned
Use Space or
up arrow
down arrow
to flip the card.
Question
Spring supports a series of mechanisms to generate a REST service payload.
Question
Annotation added as an input parameter to the handler method.

A)@pathvariable
B)@path
C)@pathlocale
D)none of the mentioned
Question
Notation for defining REST endpoints.

A){ }
B)*
C)all of the mentioned
D)none of the mentioned
Question
General-purpose class that allows a response to be rendered using a marshaller.

A)marshallingview
B)marshalling
C)view
D)all of the mentioned
Question
Marshalling is the process of transforming an in-memory representation of an object into a data format.
Question
The marshaller used by MarshallingView belongs to one of a series of XML marshallers.

A)jaxb2marshaller
B)xmlbeansmarshaller
C)castormarshalle
D)all of the mentioned
Question
To configure Jaxb2Marshaller marshaller we require.

A)classestobebound
B)contextpath
C)all of the mentioned
D)none of the mentioned
Question
In the case of classesToBeBound, the classes assigned to this property, indicate the class (i.e., object) structure that is to be transformed into XML.
Question
Accessing a third-party REST service inside a Spring application.

A)resttemplate class
B)viewresolver
C)internalviewresolver
D)view
Question
REST service end point comprises an address.

A)starts with http:// and ends with ?
B)starts with http:// and ends with &
C)no certain url is specified
D)depends upon the platform used
Question
XML tag which represents information related to a REST service request.

A)result
B)title
C)none of the mentioned
D)all of the mentioned
Question
RestTemplate class method which performs an HTTP HEAD operation.

A)headforheaders(string, object…)
B)getforobject(string, class, object…)
C)postforlocation(string, object, object…)
D)postforobject(string, object, class, object…)
Question
A web service contract is described using :-

A)web services description language
B)web services description
C)all of the mentioned
D)none of the mentioned
Question
There are two approaches to developing a web service, depending on whether you define the contract first or last.
Question
In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-

A)xml
B)xml schema(.xsd)
C)wsdl
D)all of the mentioned
Question
In some cases, it's also hard to map an object to XML (e.g., an object graph with cyclic references) because there's actually an impedance mismatch between an object model and an XML model.
Question
Service exporters that can export a bean as a remote service based on the :-

A)rmi
B)hessian
C)burlap
D)all of the mentioned
Question
3 WEB SERVICES
Question
The standard for deploying web services on the Java EE platform as of Java EE 1.4:-

A)jax-rpc
B)jax
C)rpc
D)none of the mentioned
Question
To send objects across the wire, beans need to be encoded using the Java Architecture for XML Binding (JAXB).
Question
If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with:-

A)javax.jws.webservice
B)javax.jws.webserviceprovider
C)all of the mentioned
D)none of the mentioned
Question
If you are using the JAX-RS Reference Implementation, this intermediary step will involve a tool called wsgen.
Question
Spring provides a factory that can export beans annotated with:-

A)javax.jws.webservice
B)javax.jws.webserviceprovider
C)all of the mentioned
D)none of the mentioned
Question
Exposing a stand-alone SOAP endpoint using the:-

A)simplejaxwsserviceexporter
B)jax-ws
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 14: Understanding REST Services and Web Services in Spring Framework
1
Publishing an application's data as a REST service requires.

A)@requestmapping
B)@pathvariable
C)all of the mentioned
D)none of the mentioned
all of the mentioned
2
Spring supports a series of mechanisms to generate a REST service payload.
True
3
Annotation added as an input parameter to the handler method.

A)@pathvariable
B)@path
C)@pathlocale
D)none of the mentioned
@pathvariable
4
Notation for defining REST endpoints.

A){ }
B)*
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
General-purpose class that allows a response to be rendered using a marshaller.

A)marshallingview
B)marshalling
C)view
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
Marshalling is the process of transforming an in-memory representation of an object into a data format.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
The marshaller used by MarshallingView belongs to one of a series of XML marshallers.

A)jaxb2marshaller
B)xmlbeansmarshaller
C)castormarshalle
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
To configure Jaxb2Marshaller marshaller we require.

A)classestobebound
B)contextpath
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
In the case of classesToBeBound, the classes assigned to this property, indicate the class (i.e., object) structure that is to be transformed into XML.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Accessing a third-party REST service inside a Spring application.

A)resttemplate class
B)viewresolver
C)internalviewresolver
D)view
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
REST service end point comprises an address.

A)starts with http:// and ends with ?
B)starts with http:// and ends with &
C)no certain url is specified
D)depends upon the platform used
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
XML tag which represents information related to a REST service request.

A)result
B)title
C)none of the mentioned
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
RestTemplate class method which performs an HTTP HEAD operation.

A)headforheaders(string, object…)
B)getforobject(string, class, object…)
C)postforlocation(string, object, object…)
D)postforobject(string, object, class, object…)
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
A web service contract is described using :-

A)web services description language
B)web services description
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
There are two approaches to developing a web service, depending on whether you define the contract first or last.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-

A)xml
B)xml schema(.xsd)
C)wsdl
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
In some cases, it's also hard to map an object to XML (e.g., an object graph with cyclic references) because there's actually an impedance mismatch between an object model and an XML model.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Service exporters that can export a bean as a remote service based on the :-

A)rmi
B)hessian
C)burlap
D)all of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
3 WEB SERVICES
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The standard for deploying web services on the Java EE platform as of Java EE 1.4:-

A)jax-rpc
B)jax
C)rpc
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
To send objects across the wire, beans need to be encoded using the Java Architecture for XML Binding (JAXB).
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with:-

A)javax.jws.webservice
B)javax.jws.webserviceprovider
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
If you are using the JAX-RS Reference Implementation, this intermediary step will involve a tool called wsgen.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Spring provides a factory that can export beans annotated with:-

A)javax.jws.webservice
B)javax.jws.webserviceprovider
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Exposing a stand-alone SOAP endpoint using the:-

A)simplejaxwsserviceexporter
B)jax-ws
C)all of the mentioned
D)none of the mentioned
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.