mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
15 lines
290 B
Text
15 lines
290 B
Text
|
#!/usr/local/bin/ruby
|
||
|
|
||
|
require 'soap/rpc/cgistub'
|
||
|
require 'exchange'
|
||
|
|
||
|
class ExchangeServer < SOAP::RPC::CGIStub
|
||
|
def initialize(*arg)
|
||
|
super
|
||
|
servant = Exchange.new
|
||
|
add_servant(servant)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
status = ExchangeServer.new('SampleStructServer', ExchangeServiceNamespace).start
|