mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00

* lib/soap/mapping/wsdl*.rb * lib/wsdl/soap/element.rb * lib/wsdl/xmlSchema/simpleContent.rb * modified files: * lib/soap/* * lib/wsdl/* * lib/xsd/* * test/soap/* * test/wsdl/* * test/xsd/* * sample/soap/* * sample/sdl/* * summary * imported from the soap4r repository. Version: 1.5.3-ruby1.8.2 * added several XSD basetype support: nonPositiveInteger, negativeInteger, nonNegativeInteger, unsignedLong, unsignedInt, unsignedShort, unsignedByte, positiveInteger * HTTP client connection/send/receive timeout support. * HTTP client/server gzipped content encoding support. * improved WSDL schema definition support; still is far from complete, but is making step by step improovement. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24 lines
618 B
Ruby
24 lines
618 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require 'soap/rpc/standaloneServer'
|
|
require 'calc2'
|
|
|
|
class CalcServer2 < SOAP::RPC::StandaloneServer
|
|
def on_init
|
|
servant = CalcService2.new
|
|
add_method(servant, 'set', 'newValue')
|
|
add_method(servant, 'get')
|
|
add_method_as(servant, '+', 'add', 'lhs')
|
|
add_method_as(servant, '-', 'sub', 'lhs')
|
|
add_method_as(servant, '*', 'multi', 'lhs')
|
|
add_method_as(servant, '/', 'div', 'lhs')
|
|
end
|
|
end
|
|
|
|
if $0 == __FILE__
|
|
server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000)
|
|
trap(:INT) do
|
|
server.shutdown
|
|
end
|
|
status = server.start
|
|
end
|