title: How to do Basic Authentication with an Axis2 ADB Client?
body: <p>I'm trying to figure out how to do Basic Authentication with an ADB Axis2 version 1.5 Client.</p>
  
  <p>I'm trying the following:</p>
  
  <pre><code>HttpTransportProperties.Authenticator basicAuth = new HttpTransportProperties.Authenticator();
  basicAuth.setUsername(username);
  basicAuth.setPassword(password);
  final Options clientOptions = serviceStub._getServiceClient().getOptions();
  clientOptions.setProperty(HTTPConstants.AUTHENTICATE, basicAuth);
  </code></pre>
  
  <p>However this does not work and the needed line in the message header is not being added.</p>