DWSJ_threo
1 .Which one of the following describes information about the Web Service in XML format?
WSDL
2 .Which one of the following APIs provides a single set of API's to access a variety of XML registries, such as UDDI and ebXML Registry?
JAXR
3 .In which mode of JAX-RPC does a client invoke a remote procedure and continue in its thread without blocking?
Non-blocking RPC invocation
4 .The XML-based registry that allows remote clients to access, and search the Web Services is ________.
UDDI
5 .Which one of following classes is the root class for all SOAP messages?
SOAPMessage
----6 .State whether the statement "The interaction layer is made up of the service endpoint interface that the service exposes to the clients and the service processing layer consists of the business logic that is used to process client requests." is true or false.
True
False
7 .A J2EE Web Service must contain ____________________, and a deployment descriptor in the end-point archive file.
webservices.xml
8 .The use of stubs to access Web Services cost Client applications their __________ .
portability
9 .____ API enables developers to create and send attachments with SOAP messages.
SAAJ
10 .________ has the ability to enable clients to invoke methods of Web Services unknown at compile time
DII
11 .The _________ API is used to search and read data from a UDDI registry.
Inquiry
12 ._________ do not require code generation during development.
Dynamic proxy
13 .In the ___________ class the qualified names acts as XML namespaces
QName
14 .The _____________ packages Service factory class is an abstract class that acts as a factory for creating instances of the service interface.
javax.xml.rpc
15 .The _________ mode of communication should only be used when operations need to be looked up during runtime.
DII
16 .The __________ method returns either an instance of a generated stub implementation class or dynamic proxy.
getPort()
17 .__________ is an API that allows the user to create, read, or modify SOAP messages with attachment by means of javax.xml.soap package.
SAAJ
18 .A __________ instance is used to create a factory which enables applications to obtain parser objects.
DocumentBuilderFactory
19 .___________ framework can be used to specify pluggable, custom serializers and deserializers that support nonstandard type mappings.
Extensible type mapping
20 .JAXR information model is based on ebXML ____________.
RIM
21 .Interfaces defined in the JAXR information model extend the ____________ interface, which defines the common state information called attributes shared by all the registry objects.
javax.xml.registry.infomodel.RegistryObject
22 .Which of the folowing things are performed by the JAXB API?
1. Generate Java classes from an XML schema
2. Read and write XML using Java classes generated from an XML schema
3. Parse XML using SAX and DOM
----
1
23. Which of the following APIs are included in the JAXP API?
SAX
DOM
24 .Which of the following elements are created by a new SOAPMessage object by default?
SOAPHeader
SOAPBody
SOAPEnvelope
SOAPPart
25 .Which of the following modes of operations are supported by JAX-RPC?
Synchronous request-response mode
One-way RPC mode
Non-blocking RPC invocation mode
26
Following are the steps to access a Web Service using a Static Stub:
1. Retrieve the service endpoint interface implementation in a stub object.
2. Access Web Service methods using stub object.
3. Set the endpoint address for the stub object.
4. Typecast the stub as an interface.
Which of the following indicates the correct sequence of the steps?
1, 4, 3, 2
27 .Which of the following situations are best suited for a SAX-based parser?
To modify the XML document directly.
To process XML document in a sequential order only.
To have random access to the components of the document.
To process very large document and the performance and/or memory is an issue.
28
Which of the following factors influence the design of a remote interface of a Web Service?
Choice of interface endpoint.
Granularity of service.
Parameter types for Web Service operations.
None of the above.
Bạn đang đọc truyện trên: Truyen247.Pro