Web Services with Java
This test includes the basic development knowledge about java web services. This test is useful for academic students as well as gate aspirants.
Questions
Which of the following elements in SOAP building blocks is used to identify call and response information?
- A fault element
- A body element
- An envelope element
- A header element
- A default element
Which of the following statements is false about SOAP(Simple Object Access Protocol) header element?
- It contains the authentication information about the users.
- It contains application specific information.
- It must be the first child element of the Envelope element.
- The immediate child elements of the header element must be namespace-qualified.
- It defines the data types used in the document.
Which of the following statements is incorrect about SOAP message?
- It must be encoded using XML.
- The SOAP message must use the SOAP encoding namespace.
- The SOAP message must use the SOAP envelope namespace.
- The SOAP message must specify a DTD reference.
- The SOAP message must not contain the XML processing instructions.
Which of the following statements is false about Universal Description, Discovery and Integration (UDDI) web service?
- It is platform-independent.
- It is used to store information about the web services.
- It defines the rules for communication for XML.
- It a directory of web service interfaces described by WSDL.
- It communicates via SOAP.
Which of the following statements is false about the SOAP web service?
- The SOAP message can exchange information by using transport protocol.
- SOAP provides a specific binding for the JMS (Java Messaging System) protocol.
- A SOAP HTTP request specifies at least two HTTP headers.
- It is used to define the rules of communication for the messages.
- SOAP can be represented by using XML, RDF and JSON.
What is the significance of Content-Type header in SOAP request?
- It defines the MIME type for the message .
- It defines XML body of the request or response.
- It specifies the number of bytes in the body of the request or response.
- It defines protocol specification.
- Both (1) and (2)
Which of the following is an incorrect statement about REST (Representational State Transfer) web service?
- It is not a protocol.
- REST implementation is possible without any protocol.
- It should have the self contained messages.
- It uses interfaces and named operations to expose business logic.
- SOAP based web services can be implemented by RESTful style.
Which of the following elements in the WSDL(Web Services Description Language) document structure contains the set of operations supported by one or more endpoints?
- Message
- Types
- portType
- Binding
- endPoint
Which of the following WSDL elements specifies the accessibility of the web service at the endpoints?
- portType
- Binding
- Service
- Types
- Messages
Which of the following statements is correct about JAXP (Java API for xml processing)?
- It provides protocol definition for the web service.
- It provides validation capability for the XML documents.
- It provides structured information for the web service.
- It provides security for the web services.
- It shares the context with other web services.
Which of the following is an incorrect statement about JAXR (Java API for XML Registries)?
- It is used to access XML registries.
- It defines a list of services available on the web.
- It works for client applications also.
- It allows access to registries implemented on different standards, such as UDDI.
- It calls remote procedures for SOAP request.
Which of the following web service technologies specifies security and reliability features for the application?
- ebXML Messaging Service specification (ebMS)
- Java APIs for XML (JAX)
- UDDI
- WSDL
- SOAP
Which of the following is an incorrect statement about REST service?
- It provides resource identification through URI.
- It provides uniform interface.
- It cannot handle crude operations.
- It defines self-descriptive messages.
- Every interaction with a resource is stateless.
What is the role of 'actor Attribute' in SOAP message?
- It specifies the address of the header element.
- It specifies whether the header element is mandatory or optional for the recipient.
- It is used to define the data types used in the document.
- It specifies the size of the header element.
- It is the default attribute used in the SOAP message.
Which of the following is an incorrect statement about web services?
- Web services are supported by the major browsers.
- Web services work on several protocol specifications.
- REST provides better cache capability.
- Web service is an interface for the application.
- SOAP is based on HTTP protocol.