Sha256: d762b82076fdcc5216ead2389b3bcbfd8a02766938183c582f540846fafa9096

Contents?: true

Size: 412 Bytes

Versions: 7

Compression:

Stored size: 412 Bytes

Contents

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

7 entries across 7 versions & 2 rubygems

Version Path
soap4r-spox-1.6.0 sample/basic/helloworld/server.rb
soap4r-ruby1.9-2.0.5 sample/basic/helloworld/server.rb
soap4r-ruby1.9-2.0.3 sample/basic/helloworld/server.rb
soap4r-ruby1.9-2.0.2 sample/basic/helloworld/server.rb
soap4r-ruby1.9-2.0.1 sample/basic/helloworld/server.rb
soap4r-ruby1.9-2.0.0 sample/basic/helloworld/server.rb
soap4r-ruby1.9-1.0.0 sample/basic/helloworld/server.rb