mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
14 lines
264 B
Text
14 lines
264 B
Text
|
require 'soap/rpc/cgistub'
|
||
|
|
||
|
class CalcServer < SOAP::RPC::CGIStub
|
||
|
def initialize(*arg)
|
||
|
super
|
||
|
|
||
|
require 'calc'
|
||
|
servant = CalcService
|
||
|
add_servant(servant, 'http://tempuri.org/calcService')
|
||
|
end
|
||
|
end
|
||
|
|
||
|
status = CalcServer.new('CalcServer', nil).start
|