Sha256: 1997357acf3922cb33508e50f684493478331310cbee404fff0ca036f43fc66f

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

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

class HelloWorldServer < SOAP::RPC::StandaloneServer
  def on_init
    @log.level = Logger::Severity::DEBUG
    add_method(self, 'hello_world', 'from')
  end

  def hello_world(from)
    "Hello World, from #{ from }"
  end
end

if $0 == __FILE__
  server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000)
  trap(:INT) do 
    server.shutdown
  end
  server.start
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/basic/helloworld/server.rb
soap5r-2.0.2 sample/basic/helloworld/server.rb
soap5r-2.0.1 sample/basic/helloworld/server.rb
soap5r-2.0.0 sample/basic/helloworld/server.rb
soap5r-2.0.0.20120130130121 sample/basic/helloworld/server.rb