title: WCF WebService with UserName Authentication test on SoapUI
body: <p>I have WCF WebService with UserName Authentication and not able to test it with SoapUI.</p>
  <p>Here you have web.config:</p>
  <pre><code>&lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name=&quot;FHPBusinessLogicService.ServiceBehavior&quot;&gt;
            &lt;serviceCredentials type=&quot;FHPBusinessLogicService.Security.PasswordServiceCredentials, FHPBusinessLogicService&quot;&gt;
              &lt;userNameAuthentication userNamePasswordValidationMode=&quot;Custom&quot; /&gt;
            &lt;/serviceCredentials&gt;
            &lt;serviceMetadata httpGetEnabled=&quot;true&quot; httpsGetEnabled=&quot;true&quot;/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults=&quot;true&quot;/&gt;
            &lt;serviceAuthorization principalPermissionMode=&quot;Custom&quot; /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name=&quot;ServiceConf&quot; maxReceivedMessageSize=&quot;65536&quot; &gt;
            &lt;readerQuotas maxStringContentLength=&quot;65536&quot; maxArrayLength=&quot;65536&quot; maxBytesPerRead=&quot;65536&quot; /&gt;
            &lt;security mode=&quot;TransportWithMessageCredential&quot;  &gt;
              &lt;message clientCredentialType=&quot;UserName&quot;  /&gt;
              
            &lt;/security&gt;
           
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
  </code></pre>
  <p>On SoapUI i'm receiving:</p>
  <blockquote>
  <p>An error occurred when verifying security for the message</p>
  </blockquote>
  <p>I'm testing it on my local machine, local IIS 7 server.</p>
  <p>Any suggestions?</p>