Sha256: 28b894bbfdc7d2e04609161c1b386a9a9d70eb284c780fba817612120757f83d
Contents?: true
Size: 391 Bytes
Versions: 7
Compression:
Stored size: 391 Bytes
Contents
#!/usr/bin/env ruby 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
7 entries across 7 versions & 2 rubygems