title: Https WebService message: Message did not contain a valid Security Element
body: <p>I am using axis 2 webservice client.</p>
  
  <p>The first https call to the webservice throws a exception with the message: "Message did not contain a valid Security Element".</p>
  
  <p>I think that the problem could be the security mode: maybe it has to be message level security. In this case, how can I configure it in axis?.</p>
  
  <p>The code:</p>
  
  <pre><code>System.setProperty("javax.net.ssl.keyStore", jksFile);
  System.setProperty("javax.net.ssl.keyStorePassword", jksPassword);
  
  MyServicePortProxy proxy = new MyServicePortProxy();
  Stub stub = (Stub) proxy.getMyServicePort();
  
  proxy.setEndpoint(endpoint);
  stub.setUsername(username);
  stub.setPassword(password);
  
  // throws exception with the above message:
  proxy.serviceMethod(...);
  </code></pre>