• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JWS Handlers

 
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,
 
Creator of Enthuware JWS+ V6
Posts: 3285
296
Android Eclipse IDE Chrome
  • 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 ...
 
Rancher
Posts: 3516
34
  • 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
 
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

 
Ranch Hand
Posts: 1738
12
  • 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
Boost this thread!