title: adding authentification header to client stub axis2
body: <p>I built the wsdl-client-stub based on xmlbeans. Now I got stuck adding a custom header for authentification using xmlbeans since xmlbeans stubs are lacking the necessary Classes(?)</p>
  
  <p>Actually, the header should look like:</p>
  
  <pre><code>&lt;SOAP-ENV:Header&gt; 
          &lt;ns2:verifyingToken&gt; 
              &lt;UserID&gt;9&lt;/UserID&gt;
              &lt;Token&gt;29438094lkjslfkjlsdkjf&lt;/Token&gt;
          &lt;/ns2:verifyingToken&gt;
       &lt;/SOAP-ENV:Header&gt;
  </code></pre>
  
  <p>So I tried as fallback going in between stub and ServiceClient:</p>
  
  <pre><code>ServiceClient sc = stub._getServiceClient();
  
  OMFactory  omFactory     = OMAbstractFactory.getOMFactory();
          OMElement  omElement     = omFactory.createOMElement(new QName("SOAP-ENV", "Header", "ver"), null);
          OMElement  omElementVeri = omFactory.createOMElement(new QName("", "verifyingToken", ""), omElement);
          OMElement  omElementUser = omFactory.createOMElement(new QName("", "UserID", ""), omElementVeri);
                     omElementUser.setText(""+userid);
  
          OMElement  omElementPass   =   omFactory.createOMElement(new QName("", "Token", ""), omElementVeri);
                     omElementPass.setText(""+token);
          sc.addHeader(omElement);
  </code></pre>
  
  <p>eclipse is raising errors saying:
  The method createOMElement(String, OMNamespace) in the type OMFactory is not applicable for the arguments (QName,  null)
  - The constructor QName(String, String, String) is undefined</p>
  
  <p>Does anyone has a hint, what I should fix, to get this to work.
  I really appreciate your help,</p>
  
  <p>Alex</p>