title: rails pass soap basic auth with savon
body: <p>I'm trying to send soap request with basic authentication with <code>savon gem</code><br>
  My soap server is set up with <code>wash_out gem</code>  </p>
  
  <pre><code>class OrdersController &lt; ApplicationController  
       soap_service namespace: 'sir:WashOut', wsse_username: SIRA[:auth][:username], wsse_password: SIRA[:auth][:password]  
  </code></pre>
  
  <p>....</p>
  
  <p>When i make a request to soap server via <code>savon</code> i get an error:</p>
  
  <pre><code>    @client = Savon.client(
        wsdl:  "http://localhost:3000/orders/wsdl",
        soap_header: { 'Username' =&gt;SIRA[:auth][:username], 'Password' =&gt; SIRA[:auth][:password] }
      )  
  
    @response = @client.call(:notify ).to_hash
  </code></pre>
  
  <p>On the last command i get an error </p>
  
  <pre><code> Savon::SOAPFault: (Server) Missing required UsernameToken
  </code></pre>