mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
316 B
Ruby
12 lines
316 B
Ruby
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__)
|