About Question enthuware.ocejws.v6.2.106 :

Moderators: Site Manager, fjwalraven

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

About Question enthuware.ocejws.v6.2.106 :

Post by resolve123 » Wed Jun 17, 2015 6:51 am

answers to below question in your test is wrong


We have configured a number of Handlers in both the client and server side of our Web Service.
This is the configuration order of the handlers on the client side:
1) LogicalHandler 1
2) LogicalHandler 2
3) SOAPHandler 1
4) SOAPHandler 2

This is the configuration order of the handlers on the server side:
1) LogicalHandler 3
2) LogicalHandler 4
3) SOAPHandler 3
4) SOAPHandler 4

What will be the order of execution when the message travels from client to server?

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

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

Post by fjwalraven » Wed Jun 17, 2015 8:34 am

Hi !

Why do you think it is wrong?

Regards,
Frits

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

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

Post by resolve123 » Thu Jun 18, 2015 11:56 am

server side for the inbound Handler sequence should be like

SH3-->SH4-->LH1-->LH2 but in answer it is

because what ever SH handler will be first in configuratio at server side should execute first but In your answer SH4 is excuted before SH1.

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

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

Post by fjwalraven » Thu Jun 18, 2015 12:11 pm

In your answer SH4 is excuted before SH1.
Yes, and that is correct.

The JAX-WS specs are clear about it: for inbound messages the order of processing (when compared to the order of configuration) is reversed.

Try to code this example and see what happens.

Regards,
Frits

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests