title: Connect to a secured webservice with the Savon rubygem
body: <p>I'm trying to use Savon to connect to a webservice and can't figure out how to make it work.</p>
  
  <p>let's say I have a webservice: <a href="https://wwww.service.com:16778/services/2.0/" rel="nofollow">https://wwww.service.com:16778/services/2.0/</a> (no wsdl provided)
  the service provided sent me a .p12 file and a password required to connect</p>
  
  <p>How do I implement this?
  What's the use of the namespace?</p>
  
  <p>I wrote something like the following but doesn't seem to work </p>
  
  <pre><code>  client = Savon.client do
      endpoint end_point          
      namespace "https://wwww.service.com:16778"
      ssl_verify_mode :none
      ssl_cert_file OpenSSL::PKCS12.new(File.read(cert_file), 'password')
      ssl_cert_key_file Rails.root + "lib/certificates/CC0000007015_500.p12"
  end
  </code></pre>
  
  <p>thanks for your help</p>