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

root/trunk/sample/basic/sampleStruct/server.rb

Revision 1843, 425 bytes (checked in by nahi, 2 years ago)
  • reorganize sampless
  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1 #!/usr/bin/env ruby
2
3 require 'soap/rpc/standaloneServer'
4 require 'sampleStruct'
5
6 class SampleStructServer < SOAP::RPC::StandaloneServer
7   def initialize(*arg)
8     super
9     servant = SampleStructService.new
10     add_servant(servant)
11   end
12 end
13
14 if $0 == __FILE__
15   server = SampleStructServer.new('SampleStructServer', SampleStructServiceNamespace, '0.0.0.0', 7000)
16   trap(:INT) do
17     server.shutdown
18   end
19   server.start
20 end
Note: See TracBrowser for help on using the browser.