summaryrefslogtreecommitdiff
path: root/ruby_1_8_5/test/soap/calc/server.cgi
blob: 1eb0d1d86461e5e1a28330a7569aed44190baf51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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