mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
db9445103c
* lib/wsdl/* (42 files): WSDL4R added. * lib/xsd/* (12 files): XSD4R added. * test/soap/* (16 files): added. * test/wsdl/* (2 files): added. * test/xsd/* (3 files): added. * sample/soap/* (27 files): added. * sample/wsdl/* (13 files): added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
30 lines
663 B
Ruby
30 lines
663 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require 'iRAA'
|
|
require 'soap/rpc/driver'
|
|
|
|
|
|
server = ARGV.shift || 'http://raa.ruby-lang.org/soap/1.0.2/'
|
|
|
|
raa = SOAP::RPC::Driver.new(server, RAA::InterfaceNS)
|
|
raa.mapping_registry = RAA::MappingRegistry
|
|
RAA::Methods.each do |name, *params|
|
|
raa.add_method(name, params)
|
|
end
|
|
# raa.wiredump_dev = STDOUT
|
|
|
|
p raa.getAllListings().sort
|
|
|
|
p raa.getProductTree()
|
|
|
|
p raa.getInfoFromCategory(RAA::Category.new("Library", "XML"))
|
|
|
|
t = Time.at(Time.now.to_i - 24 * 3600)
|
|
p raa.getModifiedInfoSince(t)
|
|
|
|
p raa.getModifiedInfoSince(DateTime.new(t.year, t.mon, t.mday, t.hour, t.min, t.sec))
|
|
|
|
o = raa.getInfoFromName("SOAP4R")
|
|
p o.class
|
|
p o.owner.name
|
|
p o
|