This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
HTTP headers are used for HTTP Basic/Digest authentication. SOAP headers are used for WS-Security style authentication.
Unfortunately, the process of applying WS-Security differs from SOAP stack to SOAP stack; you'll have to consult the documentation of whichever stack you're using.
Joined: Mar 28, 2011
Thanks, can you please explan what that mean, sorry I am new to webservices. I'm not able to identify how to do a basic webserice authentication.
Joined: Sep 21, 2011
As I said, the specifics depend on how your code is accessing the web service, and on which SOAP AP you're using. There is no general formula to follow. The first couple of items in http://www.coderanch.com/how-to/java/WebServicesHowTo page show it for the SOAP and JAX-RPC APIs.