This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Web Services and the fly likes Regarding SOAPHeader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Regarding SOAPHeader" Watch "Regarding SOAPHeader" New topic

Regarding SOAPHeader

John Austran

Joined: Sep 13, 2012
Posts: 2
What is the purpose of using SOAPHeader for?
I found some sites said that can use to put payment or authentication data but I can also put these data on SOAP body or logical part.
So what are the differences to put these data on SOAPHeader instead of SOAP body?
Can I inject any other information into SOAPHeader?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
You can use it for any metadata that makes sense for your purposes. For example, WS-Security (the standard way of securing SOAP WS) uses it for encryption, signature and authentication purposes.
Siitesh Hind
Ranch Hand

Joined: Sep 06, 2012
Posts: 51
Hello Ulf,

Can I create a SOAP Header while creating a java web service?

I need to deploy it on JBoss AS.


I agree. Here's the link:
subject: Regarding SOAPHeader
It's not a secret anymore!