File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Regarding SOAPHeader" Watch "Regarding SOAPHeader" New topic
Author

Regarding SOAPHeader

John Austran
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 39543
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
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.

Rgds,

Seetesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding SOAPHeader
 
Similar Threads
SAML Assertions
soap web service communication
SOAP header missing from the message?
Adding JAXB object to Soap Header
Setting a Connection to 'keep-alive'