Sha256: 2fd7104ff89b9e06ee658c6f1cb46abfb0e50d32360bfdb4353367cacbacb116

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

#!/usr/bin/env ruby

require 'soap/rpc/standaloneServer'
require 'exchange'

class ExchangeServer < SOAP::RPC::StandaloneServer
  def initialize(*arg)
    super
    servant = Exchange.new
    add_servant(servant)
  end
end

if $0 == __FILE__
  server = ExchangeServer.new('SampleStructServer', ExchangeServiceNamespace, '0.0.0.0', 7000)
  trap(:INT) do
    server.shutdown
  end
  status = server.start
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
soap4r-spox-1.6.0 sample/basic/exchange/server.rb
soap4r-ruby1.9-2.0.5 sample/basic/exchange/server.rb
soap4r-ruby1.9-2.0.3 sample/basic/exchange/server.rb
soap4r-ruby1.9-2.0.2 sample/basic/exchange/server.rb
soap4r-ruby1.9-2.0.1 sample/basic/exchange/server.rb
soap4r-ruby1.9-2.0.0 sample/basic/exchange/server.rb
soap4r-ruby1.9-1.0.0 sample/basic/exchange/server.rb