Sha256: c0a219115b870142c1c98962fe3a3cf29bb0569f702c5b36a2e4610d37878764

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

# encoding: ASCII-8BIT
require 'soap/rpc/driver'

ExchangeServiceNamespace = 'http://tempuri.org/exchangeService'

class Exchange
  ForeignServer = "http://services.xmethods.net/soap"
  Namespace = "urn:xmethods-CurrencyExchange"

  def initialize
    @drv = SOAP::RPC::Driver.new(ForeignServer, Namespace)
    @drv.add_method("getRate", "country1", "country2")
  end

  def rate(country1, country2)
    return @drv.getRate(country1, country2)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/basic/exchange/exchange.rb
soap5r-2.0.2 sample/basic/exchange/exchange.rb
soap5r-2.0.1 sample/basic/exchange/exchange.rb
soap5r-2.0.0 sample/basic/exchange/exchange.rb
soap5r-2.0.0.20120130130121 sample/basic/exchange/exchange.rb