I'm writing a simple proof-of-concept webservice client using the JBoss-WS library. I need to send messages to a remote service that requires a <Security> header with a <UsernameToken> element.
I would like to add this header in the most JAX-WS-kosher way, without having to manually add XML elements by hand, without having to read in a configuration file, and without relying on the specific WS stack I'm using. How do I do this?