Difference between revisions of "Ruby"
From Rackspace Email & Apps API
(New page: Running the following command: <blockquote><code> wsdl2ruby.rb --wsdl https://admin.webmail.us/mailaccounts/mailaccounts.wsdl --type client </code></blockquote> This will generate the fo...) |
|||
Line 2: | Line 2: | ||
<blockquote><code> | <blockquote><code> | ||
− | wsdl2ruby.rb --wsdl https://admin. | + | wsdl2ruby.rb --wsdl https://admin.mailtrust.com/mailaccounts/mailaccounts.wsdl --type client |
</code></blockquote> | </code></blockquote> | ||
Latest revision as of 12:54, 19 September 2008
Running the following command:
wsdl2ruby.rb --wsdl https://admin.mailtrust.com/mailaccounts/mailaccounts.wsdl --type client
This will generate the following list of files.
mailaccounts.rb
mailaccountsClient.rb
mailaccountsDriver.rb
mailaccountsMappingRegistry.rb
Here is the sample code for CheckUserAvailable:
require 'rubygems'
gem 'soap4r'
require 'mailaccountsDriver.rb'
driver = UtilsSoapPort.new
driver.wiredump_dev = STDOUT
res = driver.CheckUserAvailable('ADMIN_NAME', 'ADMIN_PASSWORD', 'DOMAIN', 'USER')