Q1. In which order do LogicalHandlers and SOAPHandlers configured on a Web Service endpoint execute on an incoming message ? (Choose one)
A. SOAPHandlers in the order specified in configuration are executed first and later the LogicalHandlers specified in the order get executed
B. LogicalHandlers in the order specified in configuration are executed first and later the SOAPHandlers specified in the order get executed
C. All the handlers are executed in the order specified in the configuration
D. All the handlers are executed in the reverse order specified in the configuration.
Answer: A
Q2. When a SOAP envelope is optimized on the wire, the following can be said about the optimized infoset : (Choose one)
A. optimized infoset contains xop:Include elements with href attribute pointing to attachment data
B. optimized infoset contains mtom:Import with location attribute pointing to attachment data
C. optimized infoset doesn't have any specific elements for MIME attachment.
D. optimzed infoset's element contain cid:Content-ID as the text and Content-ID refers to the associated attachment
Answer: A
Q3. An engineer is creating a WSDL 1.1 document, and is having difficulty with the wsdl:messages section.
Which two statements are true about wsdl:messages in a WSDL 1.1 document? (Choose two.)
A. Both type and element attributes can be used on the same wsdl:part.
B. Both type and element attributes can be used on the same wsdl:binding.
C. The type and element attributes cannot be used on the same wsdl:part.
D. The type and element attributes cannot be used on the same wsdl:binding.
E. Document-style messaging allows the type attribute.
F. Document-style messaging allows the element attribute.
Answer: CF
Q4. What would be the HTTP content-type header when a message is optimized using MTOM ? (Choose one)
A. multipart/related
B. text/xml
C. application/soap+xml
D. application/xop+xml
Answer: A
Q5. Given the class:
Choose the URL path that would result in a call to getToken()? (Choose one)
A. /id/value
B. /resource/id
C. /resource/id/name
D. /resource/id/value/token
Answer: C
Q6. An engineer is studying the architecture of the JAXB implementation. What are three components in its design? (Choose three.)
A. Schema compiler.
B. Built-in SAX parser
C. Schema generator.
D. Built-in DOM parser.
E. Binding runtime framework.
F. Schema interpreter.
Answer: ACE
Q7. Choose three ways to enable MTOM on a web service endpoint deployed in an EE container ? (Choose three)
A. enabled by the container automatically
B. by specifying @MTOM annotation on the endpoint's class
C. by specifying <enable-mtom> in webservices.xml deployment descriptor
D. by specifying a wsoma:MTOM policy in WSDLE. by specifying <mtom> element in sun-jaxws.xml
Answer: BCD
Q8. Choose the option that best describe the deployer's choices, when deploying an EJB that is also exposed as a RESTful web service using JAX-RS (Choose one):
A. The EJB can only be deployed to a web container, since RESTful access to the EJB requires a web container to support the HTTP interaction needed.
B. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the ejb container.
C. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the web container.
D. The EJB can be deployed to an EJB or web container that is visible to the JAX-RS runtime, even on an application server separate from the JAX-RS runtime, since EJBs support local or remote interactions via RMI.
Answer: C
Q9. Given stock quote web service endpoint:
and the corresponding client side artifacts for the above web service are :
StockQuoteService is the Service class and StockQuoteProvider is the corresponding SEI.
Which of the following two options enable addressing feature for proxy for the StockQuoteProvider SEI ? (Choose two)
A. proxy = new StockQuoteService().getStockQuoteProvider()
B. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature())
C. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false))
D. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false, true))
Answer: AB
Q10. Which three statements about parsers are true? (Choose three.)
A. SAX and StAX are bi-directional.
B. DOM and StAX are bi-directional.
C. StAX is a push API, whereas SAX is pull.
D. SAX is a push API, whereas StAX is pull.
E. SAX and StAX are read-only.
F. SAX and DOM can write XML documents.
G. StAX and DOM can write XML documents.
Answer: BDG