• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JWS Handlers

 
Sri Yasasvi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone explain me the reason why, logical handlers execute before SOAP Handlers of an outgoing message and vice-versa of an incoming message?

Thanks,
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2531
112
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you don't want to hear: because the JAX-WS specification mandate the order of execution like that ...
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sri Yasasvi wrote:Hi,

Can anyone explain me the reason why, logical handlers execute before SOAP Handlers of an outgoing message and vice-versa of an incoming message?

Thanks,


It should be simpler to understand and you will remember it well after that


WS client code ==> logical handler (operates only message payload) ==> SOAP handler (operates protocol-specific information) ==> network ===> ..... ==> SOAP handler (operates protocol-specific information) ==> logical handler (operates only message payload) ==> WebService implementation


1) The "closer" handler to Java code - less protocol specific - operate only on payload (message content, like XML) - Logical Handler

2) The "closer" handler to network layer - more protocol specific (like SOAP) - can operate on headers, SOAP envelope information, etc.. - SOAP Handler
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mikalai

Thanks for explaining it in such a nice way

 
Himai Minh
Ranch Hand
Posts: 1360
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the analogy I used to remember this rule:
1) go out of your house (outgoing message), wear socks (logical handler ) and then wear shoes (message handler)
2) get inside your house (incoming message) , take off your shoes (message handler) and then take off your socks (logical handler).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic