|
Revision 1843, 402 bytes
(checked in by nahi, 2 years ago)
|
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
author date id revision
|
| Line | |
|---|
| 1 |
require 'soap/rpc/driver' |
|---|
| 2 |
|
|---|
| 3 |
require 'iSampleStruct' |
|---|
| 4 |
|
|---|
| 5 |
server = ARGV.shift || 'http://localhost:7000/' |
|---|
| 6 |
# server = 'http://localhost:8808/server.cgi' |
|---|
| 7 |
|
|---|
| 8 |
drv = SOAP::RPC::Driver.new(server, SampleStructServiceNamespace) |
|---|
| 9 |
drv.wiredump_dev = STDERR |
|---|
| 10 |
drv.add_method('hi', 'sampleStruct') |
|---|
| 11 |
|
|---|
| 12 |
o1 = SampleStruct.new |
|---|
| 13 |
puts "Sending struct: #{ o1.inspect }" |
|---|
| 14 |
puts |
|---|
| 15 |
o2 = drv.hi(o1) |
|---|
| 16 |
puts "Received (wrapped): #{ o2.inspect }" |
|---|