Sha256: da0897472236cbcdeac304c109b690110aea641c12ec80b50ff4fc3cf6d8da49

Contents?: true

Size: 694 Bytes

Versions: 5

Compression:

Stored size: 694 Bytes

Contents

#!/usr/bin/env ruby
# encoding: ASCII-8BIT

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

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/showcase/soap/rwiki/rwikiClient.rb
soap5r-2.0.2 sample/showcase/soap/rwiki/rwikiClient.rb
soap5r-2.0.1 sample/showcase/soap/rwiki/rwikiClient.rb
soap5r-2.0.0 sample/showcase/soap/rwiki/rwikiClient.rb
soap5r-2.0.0.20120130130121 sample/showcase/soap/rwiki/rwikiClient.rb