File: server.rb

package info (click to toggle)
soap4r 1.4.8-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,472 kB
  • ctags: 2,206
  • sloc: ruby: 19,295; makefile: 58; sh: 41; perl: 10
file content (26 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env ruby

require 'soap/standaloneServer'
require 'soap/XMLSchemaDatatypes1999'

class App < SOAP::StandaloneServer

  def initialize( *arg )
    super( *arg )
  end

  def methodDef
    addMethod( self, 'notify', 'list' )
  end

  def notify( list )
    puts <<__EOS__
======
#{ list }
======
__EOS__
    true
  end
end

App.new( 'App', "", '0.0.0.0', 8082 ).start