diff options
Diffstat (limited to 'ruby_1_8_5/test/soap/helloworld/hw_s.rb')
-rw-r--r-- | ruby_1_8_5/test/soap/helloworld/hw_s.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ruby_1_8_5/test/soap/helloworld/hw_s.rb b/ruby_1_8_5/test/soap/helloworld/hw_s.rb new file mode 100644 index 0000000000..1a54adb924 --- /dev/null +++ b/ruby_1_8_5/test/soap/helloworld/hw_s.rb @@ -0,0 +1,16 @@ +require 'soap/rpc/standaloneServer' + +class HelloWorldServer < SOAP::RPC::StandaloneServer + def on_init + add_method(self, 'hello_world', 'from') + end + + def hello_world(from) + "Hello World, from #{ from }" + end +end + +if $0 == __FILE__ + server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 17171) + server.start +end |