Ruby

From Rackspace Email & Apps API
Revision as of 13:53, 19 September 2008 by APIAdmin (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Running the following command:

wsdl2ruby.rb --wsdl https://admin.webmail.us/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')