File: exchangeClient.rb

package info (click to toggle)
soap4r 1.4.8-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,472 kB
  • ctags: 2,206
  • sloc: ruby: 19,295; makefile: 58; sh: 41; perl: 10
file content (21 lines) | stat: -rwxr-xr-x 599 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby

require "soap/driver"
require 'iExchange'

server = "http://localhost:10080/soapsrv"

logger = nil
wireDumpDev = nil
# logger = Devel::Logger.new( STDERR )
# wireDumpDev = STDERR

drv = SOAP::Driver.new( logger, $0, ExchangeServiceNamespace, server )
drv.setWireDumpDev( wireDumpDev )
drv.addMethodWithSOAPAction( "getRate", ExchangeServiceNamespace, "country1", "country2" )
drv.addMethodWithSOAPAction( "called", ExchangeServiceNamespace )
drv.addMethodWithSOAPAction( "startTime", ExchangeServiceNamespace )

p drv.getRate( "USA", "Japan" )
p drv.called
p drv.startTime.to_s