Sha256: c35a1c374860ccdaaec6ed329471c39f18fa9696c1413425c65b6da9ab3e1320
Contents?: true
Size: 414 Bytes
Versions: 5
Compression:
Stored size: 414 Bytes
Contents
#!/usr/bin/env ruby # encoding: ASCII-8BIT require 'soap/rpc/standaloneServer' require 'calc' class CalcServer < SOAP::RPC::StandaloneServer def initialize(*arg) super servant = CalcService add_servant(servant, 'http://tempuri.org/calcService') end end if $0 == __FILE__ server = CalcServer.new('CalcServer', nil, '0.0.0.0', 7000) trap(:INT) do server.shutdown end server.start end
Version data entries
5 entries across 5 versions & 1 rubygems