Sha256: 64211c70e5517693106c1ac1a55b8646ca08cad9b36d27373c5af43809c079fa

Contents?: true

Size: 666 Bytes

Versions: 74

Compression:

Stored size: 666 Bytes

Contents

begin
  require 'soap/rpc/driver'
  require 'iRAA'
rescue LoadError
  warn("Sorry, at the moment this example is not working.")
  sleep(5)
  exit(false)
end

module RAA
  extend SOAP

  class Driver
    def initialize(server = 'http://raa.ruby-lang.org/soap/1.0/', proxy = nil)
      @drv = SOAP::RPC::Driver.new(server, RAA::InterfaceNS)
      @drv.httpproxy = proxy if proxy
      @drv.mapping_registry = RAA::MappingRegistry
      RAA::Methods.each do |name, *params|
	@drv.add_method(name, params)
      end
    end

    def setLogDev(logdev)
      # ignored.
    end

    def method_missing(msg_id, *a, &b)
      @drv.__send__(msg_id, *a, &b)
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
fxruby-1.6.48 examples/RAA.rb
fxruby-1.6.48-x64-mingw32 examples/RAA.rb
fxruby-1.6.48-x64-mingw-ucrt examples/RAA.rb
fxruby-1.6.48-x86-mingw32 examples/RAA.rb
fxruby-1.6.47 examples/RAA.rb
fxruby-1.6.47-x64-mingw-ucrt examples/RAA.rb
fxruby-1.6.47-x64-mingw32 examples/RAA.rb
fxruby-1.6.47-x86-mingw32 examples/RAA.rb
fxruby-1.6.46 examples/RAA.rb
fxruby-1.6.46-x64-mingw32 examples/RAA.rb
fxruby-1.6.46-x64-mingw-ucrt examples/RAA.rb
fxruby-1.6.46-x86-mingw32 examples/RAA.rb
fxruby-1.6.45 examples/RAA.rb
fxruby-1.6.45-x64-mingw32 examples/RAA.rb
fxruby-1.6.45-x64-mingw-ucrt examples/RAA.rb
fxruby-1.6.45-x86-mingw32 examples/RAA.rb
fxruby-1.6.44 examples/RAA.rb
fxruby-1.6.44-x64-mingw32 examples/RAA.rb
fxruby-1.6.44-x86-mingw32 examples/RAA.rb
fxruby-1.6.43 examples/RAA.rb