Page 1 of 1

About Question enthuware.ocejws.v6.2.109 :

Posted: Sun Nov 02, 2014 9:53 am
by austinor
Here's the question:

Code: Select all

We have configured a number of Handlers in our Web Service. This is the order of the handlers in the configuration file (LH means LogicalHandler, SH means SOAPHandler). 

1) LH1 
2) LH2 
3) SH1 
4) SH2

During the execution of SOAPHandler 1 (SH1) an error is detected. Hence SH1's handleMessage() returns false. What will be the order of execution in a request/response operation?

Select 1: 

a) LH1 - SH1 - LH2 - SH2 - SH2 - LH2 - SH1 - LH1
b) SH1 - SH2 - LH1 - LH2 - LH2 - LH1 - SH2 - SH1
c) LH1 - LH2 - SH1 - SH1 - LH2 - LH1 
d) LH1 - LH2 - SH1 - LH2 - LH1
e) SH1 

Correct answer: d
I was wondering if the question meant that the order declared in the handler config file was for the web service ("... Handlers in our Web Service..."), and NOT for the client. The accompanying explanation and graphic seemed to apply to a client scenario, though.

If the explanation (and 'Correct answer') were applied to a client scenario by mistake, can you point out the real answer pls if it was for the server-side as the question seemed to imply??

Re: About Question enthuware.ocejws.v6.2.109 :

Posted: Mon Nov 03, 2014 10:42 am
by fjwalraven
Hi!

This question is a "real brainer" which means that not all the information is given. However, if you look at the answers the order of Handlers can only apply to the "client-side" (as you already found out).

With this important knowledge you can further reason:
  • - Logical Handlers are executed before SOAP Handlers,
  • - If a SOAP Handler returns false the order is reversed.
This makes the order LH1-LH2-SH1-LH2-LH1 the only correct option.

Regards,
Frits

Re: About Question enthuware.ocejws.v6.2.109 :

Posted: Sat Apr 25, 2015 12:43 pm
by howdy2u
I agree with the first post. This is a trick question, b/c it say webservice and does not mention client.

I got it right, because as was pointed out, there is only one answer that fits either service or client. But a little too tricky.

Re: About Question enthuware.ocejws.v6.2.109 :

Posted: Sun Apr 26, 2015 2:14 pm
by fjwalraven
Yes, if you understand this question and answer you are good enough to answer all Handler questions in the real exam.

Well done that you got it right the first time!

Regards,
Frits

Re: About Question enthuware.ocejws.v6.2.109 :

Posted: Sun Jul 26, 2015 4:31 pm
by resolve123
We have configured a number of Handlers in our Web Service. This is the order of the handlers in the configuration file (LH means LogicalHandler, SH means SOAPHandler)
1) LH1
2) LH2
3) SH1
4) SH2
During the execution of SOAPHandler 1 (SH1) an error is detected. Hence SH1's handleMessage() returns false. What will be the order of execution in a request/response operation?



I think this question is wrong this should for client side but question is for server side. Answer for server side should be SH2---SH1--SH2

Re: About Question enthuware.ocejws.v6.2.109 :

Posted: Mon Jul 27, 2015 2:25 am
by fjwalraven
No, the Handlers are configured on the client side. I must agree that the image doesn't make that clear. I will change the image in the explanation part.

Thanks for your feedback!

Regards,
Frits