summaryrefslogtreecommitdiffstats
path: root/sample/wsdl/googleSearch/httpd.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-24 15:18:44 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-24 15:18:44 +0000
commit7957062899260c10d0a45ab27c9ab3475a4972c3 (patch)
treea311d59f031ae5def87f68be71ed1f58abadc031 /sample/wsdl/googleSearch/httpd.rb
parent77a4b63f92cdcf0deb76dc0eeae464a55f5da789 (diff)
downloadruby-7957062899260c10d0a45ab27c9ab3475a4972c3.tar.gz
ruby-7957062899260c10d0a45ab27c9ab3475a4972c3.tar.xz
ruby-7957062899260c10d0a45ab27c9ab3475a4972c3.zip
* lib/soap/* (29 files): SOAP4R added.
* lib/wsdl/* (42 files): WSDL4R added. * lib/xsd/* (12 files): XSD4R added. * test/soap/* (16 files): added. * test/wsdl/* (2 files): added. * test/xsd/* (3 files): added. * sample/soap/* (27 files): added. * sample/wsdl/* (13 files): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/wsdl/googleSearch/httpd.rb')
-rw-r--r--sample/wsdl/googleSearch/httpd.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/sample/wsdl/googleSearch/httpd.rb b/sample/wsdl/googleSearch/httpd.rb
new file mode 100644
index 000000000..ee8ab09f5
--- /dev/null
+++ b/sample/wsdl/googleSearch/httpd.rb
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+
+require 'webrick'
+require 'getopts'
+
+getopts "", 'r:', 'p:8808'
+
+s = WEBrick::HTTPServer.new(
+ :BindAddress => "0.0.0.0",
+ :Port => $OPT_p.to_i,
+ :DocumentRoot => $OPT_r || ".",
+ :CGIPathEnv => ENV['PATH']
+)
+trap(:INT){ s.shutdown }
+s.start