Difference between revisions of "Ruby"

From Rackspace Email & Apps API
Jump to: navigation, search
(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...)
(No difference)

Revision as of 13:53, 19 September 2008

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')