title: Adding a UsernameToken (WS-Security-Header) to a SOAP message
body: <p>I am trying to connect to an existing SOAP web service. I have given an wsdl and from that I've created Java classes via Apache Axis2 XMLBeans.</p>
  
  <p>But now I have to extend the messages sending by my self-written client with an WS-Security-Header. How can I do this?</p>
  
  <p>I've found the Apache Rampart project for that, but can't find any solutions to extend the messages created from my Java classes with such a header. I can only find opportunities to establish WS security to a service (in the webapp folder and so on).</p>
  
  <p>I am excited about your answers!</p>
  
  <p>Thank you for your help!</p>