Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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: 3295
298
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: 3528
37
  • 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: 1761
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).
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!