Which statement is true?

Given:
1. public boolean handleRequest(MessageContext context){
2. try{
3. SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
4. SOAPMessage message = soapCntxt.getMessage();
5. message.writeTo(logStream);
6. }catch(javax.xml.soap.SOAPException se){
7. throw new javax.xml.ws.WebServiceException (se);
8. }
9. }
The handleRequest method (lines 1-9) is implemented by a JAX-WS handler used for logging. The method encounters an error and throws a WebServiceException. Which statement is true?
A. If the method is implemented by a client-side handler, it will cause a SOAP fault to be generated.
B. If the method is implemented by a server-side handler, it will cause a SOAP fault to be generated.
C. If the method is implemented by a client-side handler, the message will continue to be processed by the handler chain.
D. If the method is implemented by a server-side handler, the message will continue to be processed by the handler chain.
E. SOAP Faults must be manually added.

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.