Sha256: 7bdc26f200fef72daac04c9ea27a35e02890d4c54b512bfa8bd8ba57059320a6

Contents?: true

Size: 671 Bytes

Versions: 7

Compression:

Stored size: 671 Bytes

Contents

#!/usr/bin/env ruby

require 'soap/rpc/driver'

server = 'http://www.jin.gr.jp/~nahi/yarpc/soapServer.cgi'
NS = 'http://www.ruby-lang.org/xmlns/soap/interface/RWiki/0.0.1'

drv = SOAP::RPC::Driver.new(server, NS)
# drv.wiredump_dev = STDERR
drv.add_method('find', 'keyword')
drv.add_method('src', 'name')
drv.add_method('view', 'name', 'env')
drv.add_method('setSrcAndView', 'name', 'src', 'env')

from = "nahi"
to = "hina"

env = { 'base' => 'mailto:nahi@keynauts.com' }

drv.find(from).each do | name |
  p name
  src = drv.src(name)
  src.gsub!(/#{ from }/i, to)
#  drv.setSrcAndView(name, src, env)
end

drv.find(from).each do | name |
  puts drv.view(name, env)
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
soap4r-spox-1.6.0 sample/showcase/soap/rwiki/rwikiClient.rb
soap4r-ruby1.9-2.0.5 sample/showcase/soap/rwiki/rwikiClient.rb
soap4r-ruby1.9-2.0.3 sample/showcase/soap/rwiki/rwikiClient.rb
soap4r-ruby1.9-2.0.2 sample/showcase/soap/rwiki/rwikiClient.rb
soap4r-ruby1.9-2.0.1 sample/showcase/soap/rwiki/rwikiClient.rb
soap4r-ruby1.9-2.0.0 sample/showcase/soap/rwiki/rwikiClient.rb
soap4r-ruby1.9-1.0.0 sample/showcase/soap/rwiki/rwikiClient.rb