diff options
Diffstat (limited to 'ruby_1_8_5/test/soap/calc/server.rb')
-rw-r--r-- | ruby_1_8_5/test/soap/calc/server.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ruby_1_8_5/test/soap/calc/server.rb b/ruby_1_8_5/test/soap/calc/server.rb new file mode 100644 index 0000000000..a93774d909 --- /dev/null +++ b/ruby_1_8_5/test/soap/calc/server.rb @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +require 'soap/rpc/standaloneServer' +require 'calc' + +class CalcServer < SOAP::RPC::StandaloneServer + def initialize(*arg) + super + + servant = CalcService + add_servant(servant, 'http://tempuri.org/calcService') + end +end + +if $0 == __FILE__ + status = CalcServer.new('CalcServer', nil, '0.0.0.0', 17171).start +end |