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.