title: Adding ws-security to wsdl2java generated classes
body: <p>I generated a bunch of client classes from a WSDL with CXF's wsdl2java. How do I add WS-Security to the header when doing something like this:</p>
  
  <pre><code>URL url = new URL("http://fqdn:8080/service/MessageHandler");
  MessageHandlerService service = new MessageHandlerService(url);
  MessageHandler handler = service.getMessageHandler();
  MyMessage message = new MyMessage();
  message.setSender("User 1");
  handler.sendMessage(message);
  </code></pre>
  
  <p>I think <code>handler</code> is a <code>javax.xml.ws.Service</code> instance.</p>