title: Ruby SAVON gem errors in making request
body: <p>I'm trying to make what appears to be a pretty straight forward <code>SOAP</code> request, one that works in <code>SoapUI</code> but when I execute my <strong>Ruby</strong> code, I get a 'raise_soap_and_http_errors!' Exception executing request.</p>
  
  <p>Here's the code - the document referenced in <strong>wsdl_path</strong> works in <strong>SOAPUI</strong> to make the authenticate request.</p>
  
  <pre><code>require 'savon'
  wsdl_path = 'XXXX_soap_interface.wsdl'
  
  client = Savon.client(
    :wsdl =&gt; wsdl_path,
    :ssl_verify_mode =&gt; :none,
    :raise_errors =&gt; true, # false if you don't want to see exceptions
    pretty_print_xml: true)
  
  
  
  response = client.call( 
  
  :authenticate, 
  message: {:partnerName =&gt; 'XXXX', :userName =&gt; 'xxxxxx', :password =&gt; 'xxxxx'}
  )
  puts response
  </code></pre>
  
  <p>The error I get back is:</p>
  
  <pre><code>savon/response.rb:85:in `raise_soap_and_http_errors!': (SOAP-
  ENV:Server) Exception executing request (Savon::SOAPFault)
          from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/savon-2.4.0/lib/savon/response.rb:14:in `initialize'
          from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/savon-2.4.0/lib/savon/operation.rb:64:in `new'
          from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/savon-2.4.0/lib/savon/operation.rb:64:in `create_response'
          from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/savon-2.4.0/lib/savon/operation.rb:55:in `call'
          from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/savon-2.4.0/lib/savon/client.rb:36:in `call'
          from xxx_soap.rb:15:in `&lt;main&gt;'
  </code></pre>
  
  <p>I'm running Ruby 1.9, anyone have any ideas on what would make this work?</p>
  
  <p>edit:  The wsdl_path variable, when used to create the Savon client, works.  I'm able to create the client and also execute client.operations and successfully get back the operations from the SOAP service.  Only the request is failing.</p>
  
  <p>edit:  After adding the helpful logging code from below, I am getting this back:</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:common="urn:xxx-com:cloud:common"
      xmlns:finsvc="urn:xxx-com:cloud:finsvc"
      xmlns:finsvc-13-6-0="urn:xxx-com:cloud:finsvc:13.6.0"&gt;
    &lt;SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
      &lt;SOAP-ENV:Fault&gt;
        &lt;faultcode&gt;SOAP-ENV:Server&lt;/faultcode&gt;
        &lt;faultstring&gt;Exception executing request&lt;/faultstring&gt;
        &lt;detail&gt;
          &lt;operationResult&gt;
            &lt;errorCode&gt;101&lt;/errorCode&gt;
            &lt;errorMessage&gt;SOAP error 44 (SOAP 1.1 fault: SOAP-ENV:Client [no subcode] "Validation constraint violation: occurrence v
  iolation in element 'userName'" Detail: [no detail] )&lt;/errorMessage&gt;
          &lt;/operationResult&gt;
        &lt;/detail&gt;
      &lt;/SOAP-ENV:Fault&gt;
    &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>No matter what order I put the parameters in or if I use camelcase or not, the first parameter specified in message throws the above error.</p>