JSP and SOAP Web Technologies
Quiz covering Java Server Pages (JSP) fundamentals including directives, actions, scopes, and error handling, plus SOAP/XML Web Services concepts including encoding rules, RPC-style operations, and WS-Routing.
Questions
Note: To express routes, WS-Routing defines a new SOAP header named "path", and, within that header (Question 16-19 are based on this note) Which element is used for specifying Ultimate receiver
- “from”
- “to”
- “fwd”
- “rev”
Note: To express routes, WS-Routing defines a new SOAP header named "path", and, within that header (Question based on this note)Which element is used for containing the reverse message path
- “from”
- “to”
- “fwd”
- “rev”
Note: To express routes, WS-Routing defines a new SOAP header named "path", and, within that header (Question based on this note) Which element is used for containing the forward message path
- “from”
- “to”
- “fwd”
- “rev”
soapenv:Header is an optional child element of soapenv:Envelope ( TRUE/FALSE)
- True
- False
Which attribute SOAP defines that can be placed on a header element and if set to “1” meaning that the receipient must understand this header or send back a soapenv:Fault indicating that it does not understand the header
- <soapenv:mustUnderstand >
- <soap:Body>
- <soap:Envelope>
- <soapenv:Envelope>
The Header section of SOAP is where application specific custom data can be sent. (TRUE/FALSE)
- True
- False
SOAP talks about accessing objects and invoking methods remotely as in a Remote Procedure Call . (TRUE/FALSE)
- True
- False
When using RPC-style SOAP, specification defines exactly the matter contained in
- <soapenv:Body>
- <soapenv:Header>
- <soapenv:Head>
- <soapenv:Tail>
In Section 5 of the SOAP specification, the encoding rules defines how
- Objects should be serialized.
- Structures should be serialized.
- Arrays should be serialized.
- Object graphs should be serialized.
- All of the above.
With literal format, the client and service deal with the data in terms of
- XML documents
- Objects and structures
- Both
- None of the Above
Global XML Web Services Architecture builds on today’s XML Web services baseline specification of
- SOAP
- WSDL
- UDDI
- All of the above
Which tag in the jsp is used to define the error page
- error-page
- exception-type
- location
- None of the above
JSP technology is extensible
- True
- False
Java Server Pages specification includes
- JSP standard directives.
- JSP standard actions.
- Script language declarations, scriplets and expressions.
- A portable tag extension mechanism.
The < % return; % > simply aborts the processing of JSP
- True
- False
Which of the following statements is true regarding the scope of ‘page’ in JSP.
- Objects with page scope are accessible only within the page where they are created
- • References to objects with page scope are stored in the pagecontext object
- All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwarded somewhere else.
- All of the above.
Which codeline must be set before any of the lines that use the PrintWriter
- setContentType()
- setPrintType()
- setWriter()
- setContentWriter()
The response.sendRedirect("……..”); is the response implicit object to redirect the browser to the different resource
- True
- False
Which of the following can the JSP include action include output from ?
- Another JSP
- Plain text file
- Servlet
- CGI Program
- All of the above
- The jsp:include/ action can pass parameters to the page which it is including. How does this second page obtain the value of these parameters?
- Using the <jsp:readParam/> action
- Using the <jsp:getParam/> action
- Use the request.getParameter() method
- Use the response.getParameter() method