XML Web Services and Java XML APIs
Quiz covering XML specifications, Java XML APIs (JAX-R, JAX-RPC, JAXP, JAXB), and web service protocols (SOAP, WSDL, UDDI)
Questions
The schema is converted to a set of schema – driven program elements by
- Schema compiler
- Schema generator
- Runtime Framework
- None of the above
In JAXBUnmarshalling, the xml document is converted to JAXB-Driven
- Java Instances
- Java Objects
- XML tags
- Java Interfaces
The default encoding for jaxb marshalling is
- ISO – 8859 -1
- ISO – 8860 – 1
- UTF – 8
- UTF – 16
It is mandatory that client applications have to be validated before marshalling.
- True
- False
The default data type mapping from xml to java for xsd:base64binary is
- int
- double
- byte
- byte[]
when XML element information can not be inferred by the derived Java representation of the XML Content,
- Null Point Exception at run time
- Compilation error
- Program terminates without warning
- A JAXBElement object is provided
How is JAXB different from other parsers?
- Stateless event driven
- Streaming API Driven
- Static binding of XSD to Java components
- All the above
JAXB is which type of parser?
- Low Level Language
- Assembly Language
- High level Language
- Any of the above
JAXB uses memory efficiently as
- The Content tree is specific to schema
- Content tree is not created dynamically
- As there is no extra tree manipulation functionality
- As it allows data access through accessor methods
Which of the following does not come under Run time operations in JAXB?
- Unmarshall the XML Document
- Process( Access or Modify) the XML content tree
- Compile the JAXB classes
- Validate XML Content tree
What does SOAP define
- The overall structure of the XML message
- The conventions representing the remote procedure call in the XML message
- A binding to HTTP
- The conventions to wrap and send an error back to the seder
- All of the above
In WSDL a refers to
- TCP/IP or UDP port on the server
- Reprsents the actual service inv used
- Exposes a <service> using a specific protocol binding
- None of the above
UDDI is a registry and a repository
- True
- False
Java API for XML based RPC (JAX-RPC)
- Can be used to generate server side and client side Java (Web Service) code from a WSDL
- Can be used to generate a WSDL from Java (Web Service) code
- Both A and B
- one of the above
Java API for XML Parsing (JAXP) is
- A new XML parser implementation
- A standard XML API that can be used by developers with over an XML parser
- A standard XML parsing technique
- none of the above
Java Web Services developed with JAX-RPC interoperate with .Net
- True
- False
Java API for XML Registries (JAX-R) is an API
- To read and write to-from a UDDI registry using SOAP messages
- To read and write to-from an ebXML registry using SOAP messages
- A and B
- None of the above
Canonical XML specification is used to
- Digitally encrypt an XML document
- Determine if two XML documents are logically equivalent
- Digitally sign an XML documents
- None of the above
XML Digital Signature specification is used to
- Digitally sign an XML document
- Include a signature using the senders private key in the XML
- Is used for non-repudiation
- 1 & 2
- All of the above
XML Encryption specification is used to
- Extend SSL for XML
- Encrypt specific elements or a complete XML document.
- Encrypts XML using a public key that can only be decrypted with a secret private key
- B and C