Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/trunk/sample/basic/calc/server.fcgi

Revision 1843, 364 bytes (checked in by nahi, 2 years ago)
  • reorganize sampless
  • Property svn:executable set to *
Line 
1 #!/usr/bin/env ruby
2
3 require 'fcgi'
4
5 require 'soap/rpc/cgistub'
6
7 class CalcServer < SOAP::RPC::CGIStub
8   def initialize(*arg)
9     super
10
11     require 'calc'
12     servant = CalcService
13     add_servant(servant, 'http://tempuri.org/calcService')
14   end
15 end
16
17 app = CalcServer.new('CalcServer', nil)
18
19 FCGI.each do |request|
20   app.set_fcgi_request(request)
21   app.start
22 end
Note: See TracBrowser for help on using the browser.