Sha256: ad97632548f3f46a0500e7c53beac5a82e6220954da7d772b221932c10dc8a42

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

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

class Server < SOAP::RPC::StandaloneServer
  def on_init
    add_method(self, 'hash')
  end

  def hash(arg)
    arg.update({5=>6, 7=>8})
  end
end

if $0 == __FILE__
  server = Server.new('svr', 'urn:www.example.org:hashsample', '0.0.0.0', 7171)
  trap(:INT) { server.shutdown }
  server.start
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/howto/wsdl_hash/server.rb
soap5r-2.0.2 sample/howto/wsdl_hash/server.rb
soap5r-2.0.1 sample/howto/wsdl_hash/server.rb
soap5r-2.0.0 sample/howto/wsdl_hash/server.rb
soap5r-2.0.0.20120130130121 sample/howto/wsdl_hash/server.rb