root/trunk/sample/basic/calc/server.cgi
| Revision 1843, 285 bytes (checked in by nahi, 2 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | #!/usr/bin/env ruby |
| 2 | |
| 3 | require 'soap/rpc/cgistub' |
| 4 | |
| 5 | class CalcServer < SOAP::RPC::CGIStub |
| 6 | def initialize(*arg) |
| 7 | super |
| 8 | |
| 9 | require 'calc' |
| 10 | servant = CalcService |
| 11 | add_servant(servant, 'http://tempuri.org/calcService') |
| 12 | end |
| 13 | end |
| 14 | |
| 15 | status = CalcServer.new('CalcServer', nil).start |
Note: See TracBrowser for help on using the browser.