summaryrefslogtreecommitdiff
path: root/sample/soap/ssl/sslclient.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/soap/ssl/sslclient.rb')
-rw-r--r--sample/soap/ssl/sslclient.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/sample/soap/ssl/sslclient.rb b/sample/soap/ssl/sslclient.rb
new file mode 100644
index 0000000000..a055247a4c
--- /dev/null
+++ b/sample/soap/ssl/sslclient.rb
@@ -0,0 +1,12 @@
+require 'http-access2'
+require 'soap/rpc/driver'
+
+# setup driver
+url = "https://localhost:17443/"
+client = SOAP::RPC::Driver.new(url, 'urn:sslhelloworld')
+client.add_method("hello_world", "from")
+# load SSL properties
+client.loadproperty('files/sslclient.properties')
+
+# SOAP over SSL
+p client.hello_world(__FILE__)