Sun Java Solaris Communities My SDN Account Join SDN
 
Quizzes

Quiz: Java Web Services Architecture

 

Quizzes Index


Duke

This quiz is based on James McGovern's, Sameer Tyagi's, Michael Stevens' and Sunil Mathew's book, Java Web Services Architecture.

How much do you know about Java Web Service Architecture? Find out by taking this quiz.

Choose the best answer(s) for each question, then click Submit to see how you scored.

  1. What does SOAP define
    A. The overall structure of the XML message
    B. The conventions representing the remote procedure call in the XML message
    C. A binding to HTTP
    D. The conventions to wrap and send an error back to the seder
    E. All of the above


  2. SOAP with Attachments API for Java (SAAJ) is
    A. An API to produce, consume and manipulate the XML structure for the SOAP message programmatically
    B. An API to for XML messaging
    C. An API for remote procedure calls


  3. In WSDL a <port> refers to
    A. TCP/IP or UDP port on the server
    B. Reprsents the actual service inv used
    C. Exposes a <service> using a specific protocol binding


  4. UDDI is a registry and a repository
    A. True, because it also allows business documents like schemas and WSDL to be stored in it
    B. False, because the the actual content is never stored in UDDI.


  5. Java API for XML Parsing (JAXP) is
    A. A new XML parser implementation
    B. A standard XML parsing technique
    C. A standard XML API that can be used by developers with over an XML parser


  6. Java API for XML based RPC (JAX-RPC)
    A. Can be used to generate server side and client side Java (Web Service) code from a WSDL
    B. Can be used to generate a WSDL from Java (Web Service) code
    C. Both A and B


  7. A JAX-RPC client can invoke the service using
    A. Client side stubs automatically generated by a tool
    B. Dynamic Invocation Interface (DII)
    C. Dynamic proxies
    D. A, B, and C
    E. A client must invoke the service by looking up the Java interface in UDDI


  8. Java Web Services developed with JAX-RPC interoperate with .Net
    A. True, because they both generate the same SOAP message
    B. False, because one is written in Java and the other in C# etc.


  9. Java API for XML Registries (JAX-R) is an API
    A. To read and write to-from a UDDI registry using SOAP messages
    B. To read and write to-from an ebXML registry using SOAP messages
    C. A and B


  10. Java API for XML Binding (JAX-B) is an API
    A. That can be used to generate Java classes from an XML schema
    B. Can be used to read and write XML using Java classes generated from an XML schema
    C. A and B
    D. Is used for parsing XML using SAX and DOM


  11. Canonical XML specification is used to
    A. Determine if two XML documents are logically equivalent
    B. Digitally encrypt an XML document
    C. Digitally sign an XML documents


  12. XML Digital Signature specification is used to
    A. Digitally sign an XML document
    B. Include a signature using the senders private key in the XML
    C. Is used for non-repudiation
    D. All of the above


  13. XML Encryption specification is used to
    A. Extend SSL for XML
    B. Encrypt specific elements or a complete XML document.
    C. Encrypts XML using a public key that can only be decrypted with a secret private key
    D. B and C


  14. The Java Web Services Developer Pack (Java WSDP) is
    A. New specification request in the community process
    B. A toolkit that allows developers to build, test and deploy Web Services
    C. Includes reference implementations for JavaServer Faces (JSF),JAXB,JAXP,JAXR,JAX-RPC,SAAJ and JSTL
    D. B and C