This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Header Role Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Header Role" Watch "Header Role" New topic
Author

Header Role

Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi, I am not quite clear about role in SOAP Header?

It has value like next,none,ultimateReceiver.

Can anyone please explain with an example why we need this? and when we have to use this?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Headers in SOAP messages can be used to send out-of-band information with a SOAP message, such as security credentials, transaction information etc.
There once was an idea that SOAP messages could be send not only directly from client to server, but passing a number of intermediary nodes along the way to the server.
Each node along the way can have a role (more like a name) that can be used to target headers to a specific node.
In reality, I rarely, if ever, see intermediary nodes.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Header Role