Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/trunk/test/sm11/server.rb

Revision 1520, 0.7 kB (checked in by nahi, 4 years ago)

removed svn:executable

  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id revision
Line 
1 #!/usr/bin/env ruby
2
3 $KCODE = "UTF8"      # Set $KCODE before loading 'soap/xmlparser'.
4
5 require 'soap/standaloneServer'
6 require 'servant'
7
8 class App < SOAP::StandaloneServer
9   def initialize( *arg )
10     super( *arg )
11
12     # Explicit definition
13     servant = Sm11PortType.new
14     Sm11PortType::Methods.each do | methodNameAs, methodName, params, soapAction, namespace |
15       addMethodWithNSAs( namespace, servant, methodName, methodNameAs, params, soapAction )
16     end
17     # Easy way to add all methods.
18     addServant( Sm11PortType.new )
19
20     self.mappingRegistry = Sm11PortType::MappingRegistry
21     self.level = Logger::Severity::ERROR
22   end
23 end
24
25 App.new( 'App', nil, '0.0.0.0', 10080 ).start
Note: See TracBrowser for help on using the browser.