title: How to call this secure webservice WDSL from Savon in Ruby?
body: <p>I have some working PHP example (see below) for accessing a secure webservice. I am trying to access the webservice with Savon. First, I tried:</p>
  
  <pre><code>&gt;&gt; client = Savon::Client.new("https://secure.service.com/soa/soap/?WSDL")
  =&gt; #&lt;Savon::Client:0x114053358 @wsdl=#&lt;Savon::WSDL:0x1140532b8 @request=#&lt;Savon::Request:0x1140532e0 @endpoint=#&lt;URI::HTTPS:0x114053038 URL:https://secure.service.com/soa/soap/?WSDL&gt;, @proxy=#&lt;URI::Generic:0x114052fc0 URL:&gt;&gt;&gt;, @request=#&lt;Savon::Request:0x1140532e0 @endpoint=#&lt;URI::HTTPS:0x114053038 URL:https://secure.service.com/soa/soap/?WSDL&gt;, @proxy=#&lt;URI::Generic:0x114052fc0 URL:&gt;&gt;&gt;
  </code></pre>
  
  <p>First problem, SOAP actions seem to be empty:</p>
  
  <pre><code>&gt;&gt; client.wsdl.soap_actions
  warning: peer certificate won't be verified in this SSL session
  =&gt; []
  </code></pre>
  
  <p>And trying to access the webservice with wsse credentials like this:</p>
  
  <pre><code>&gt;&gt; client = Savon::Client.new do |wsdl, http|
  ?&gt;   wsdl.document = "https://secure.service.com/soa/soap/?WSDL"
  &gt;&gt;   wsdl.wsse.credentials "user", "encrypted-md5-string"
  &gt;&gt; end
  </code></pre>
  
  <p>results in:</p>
  
  <pre><code>ArgumentError: wrong number of arguments (0 for 1)
  </code></pre>
  
  <p>What could be taken from this working PHP example below in Ruby, to set some basic requests to the webservice?</p>
  
  <p>PHP example:</p>
  
  <pre><code>$foo = "+++hashkey+++";
  
  $authUser = "user";
  $authPass = "password";
  
  $passphrase = md5($foo.$authPass.".wsdl");
  
  echo "User: ".$authUser."&lt;br&gt;";
  echo "Passphrase: ".$foo.$authPass.".wsdl&lt;br&gt;";
  echo "Digest Passphrase: ".$passphrase."&lt;br&gt;";
  
  $soapClient = new SoapClient( "https://secure.service.com/soa/soap/?WSDL", 
       array( "exceptions"  =&gt; true,
              "cache_wsdl" =&gt; WSDL_CACHE_NONE,
              "login" =&gt; $authUser,
              "password" =&gt; $passphrase));
  
  $param = new stdClass();
  
  $param-&gt;bankaccount = "1111111";
  $param-&gt;bankcountry = "US";
  
  $soaMethod = "SoaBank.getBank"; 
  $soaParams = array($param);
  $result = $soapClient-&gt;__soapCall($soaMethod, $soaParams);
  
  print "&lt;h1&gt;Result&lt;/h1&gt;";
  print_r($result);
  </code></pre>