Search code examples
phpruby-on-railsrubysoapsavon

How can I use SOAP (Savon) in Ruby? - Moving from PHP


I need to do this in Ruby:

$client = new SoapClient(null, array('location' => 'https://mydomain.com/index.php',
                                 'uri'      => 'https://mydomain.com/',
                                 'trace' => 1,
                                 'exceptions' => 1));
$id = $client->login($username,$password);

How can I do that? Thanks


Solution

  • The Savon documentation is extremely detailed at http://www.savonrb.com. I'm sure you can find what you are looking for - you should at least try before resorting to asking here.