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 handlRequest method (lines 1-9) is implemented by a JAX-WS handler. The logStream is a reference to some type of java.io.OutputStream. Which two statements are true? (Choose two.)
A. If the handler is associated with a JAX-WS generated stub, it will write outgoing SOAP messages to the logStream object.
B. If the handler is associated with a JAX-WS generated stub, it will write incoming SOAP messages to the logStream object.
C. If the handler is associated with a JAX-WS service endpoint, it will write outgoing SOAP messages to the logStream object.
D. If the handler is associated with a JAX-WS service endpoint, it will write incoming SOAP messages to the logStream object.
E. It will write all incoming and outgoing SOAP messages to the logStream object.
F. logStreams are NOT Web service friendly.