All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
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??
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.
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
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.