Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding SOAPHeader

 
John Austran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ulf,

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

I need to deploy it on JBoss AS.

Rgds,

Seetesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic