Sha256: 28b894bbfdc7d2e04609161c1b386a9a9d70eb284c780fba817612120757f83d

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

#!/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__
  server = CalcServer.new('CalcServer', nil, '0.0.0.0', 7000)
  trap(:INT) do
    server.shutdown
  end
  server.start
end

Version data entries

7 entries across 7 versions & 2 rubygems

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