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