title: SOAP request with username and password authentication in SoapUI
body: <p>I am trying to make a SOAP request in SoapUI, which needs authentication with username and password. I let SoapUI generate a test based on a wsdl file and try to call the service. I followed the steps on the SoapUI website to use authentication(<a href="https://www.soapui.org/soap-and-wsdl/authenticating-soap-requests.html" rel="nofollow noreferrer">https://www.soapui.org/soap-and-wsdl/authenticating-soap-requests.html</a>), but I can't get it to work. I am new to SOAP, so I'm probably missing something basic. I got a username and a password for the service, so I'm guessing this is a basic authentication. But when I try to make a request, I always get a PolicyViolationException, which states that "Required policies have not been provided: {<a href="http://docs.oasis-open.org/ns/opencsa/sca/200912" rel="nofollow noreferrer">http://docs.oasis-open.org/ns/opencsa/sca/200912</a>}clientAuthentication".</p>
  
  <p>Here is, how the request and answer look like (I obscured the service link and changed the username). I also added the user into my project and WS-Security settings.</p>
  
  <p><img src="https://i.ibb.co/m4DwN2L/Untitled1.png" alt="SoapUI request and response"></p>
  
  <p><img src="https://i.ibb.co/G5GdCp3/Untitled2.png" alt="Project setting"></p>
  
  <p>I tried Pre-emptive authentication and "Must Understand". I also tried to change the request Header and add the security manually, but nothing seems to work and I always get the same response.</p>
  
  <p><img src="https://i.ibb.co/Thj7MBx/Untitled3.png" alt="Edited Header manually"></p>