Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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: 3346
303
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: 3634
38
  • 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 Foreman
Posts: 1907
13
  • 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).
 
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic