About Question enthuware.ocejws.v6.2.109 :

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.

Moderators: Site Manager, fjwalraven

Post Reply
austinor
Posts: 41
Joined: Mon Oct 27, 2014 11:35 pm
Contact:

About Question enthuware.ocejws.v6.2.109 :

Post 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??

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

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

Post 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

howdy2u
Posts: 3
Joined: Sat Apr 25, 2015 10:51 am
Contact:

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

Post 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.

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

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

Post 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

resolve123
Posts: 6
Joined: Wed Jun 17, 2015 6:45 am
Contact:

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

Post 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

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

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

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests