File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 42965
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!