title: javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied
body: <p>Keep getting this error, not sure how to resolve it.</p>
  
  <p><strong>"Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied."</strong></p>
  
  <p>The error is traced to the line in the following code <strong>port.doSomething();</strong></p>
  
  <p>I'm using JAX-WS with CXF to consume a WSDL.</p>
  
  <p>I've generated all the stubs from the WSDL succesfully, now I'm just trying to connect to it from my client code.</p>
  
  <pre><code>    Service service = Service.create(url, qname);
  
      Port port = service.getPort(Port.class);
  
      BindingProvider bind = (BindingProvider)port;
      bind.getRequestContext().put(BindingProvider.USERNAME_PROPERTY,  "username");
      bind.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "password");
  
      port.doSomething();
  </code></pre>
  
  <p>I believe I'm using the correct method to auth my username and password, and I've verified I'm using the right information for said username and password. I've been beating my head against the wall over this for a while now, has anyone seen this issue before?</p>
  
  <p>Thanks in advance for any advice!!</p>