Sha256: aa84a3126e98838d9b46908e98ffb76142d0804b6a9ed35c83b770fec03695d4

Contents?: true

Size: 363 Bytes

Versions: 7

Compression:

Stored size: 363 Bytes

Contents

require 'soap/rpc/driver'

# SOAP client with BasicAuth requires httpclient.
# http://raa.ruby-lang.org/project/httpclient/
drv = SOAP::RPC::Driver.new('http://localhost:7000/', 'urn:test')
drv.wiredump_dev = STDERR if $DEBUG
drv.options["protocol.http.basic_auth"] <<
  ['http://localhost:7000/', "admin", "admin"]

p drv.add_method('echo', 'msg').call('hello')

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
soap4r-spox-1.6.0 sample/payload/basicauth/client.rb
soap4r-ruby1.9-2.0.5 sample/payload/basicauth/client.rb
soap4r-ruby1.9-2.0.3 sample/payload/basicauth/client.rb
soap4r-ruby1.9-2.0.2 sample/payload/basicauth/client.rb
soap4r-ruby1.9-2.0.1 sample/payload/basicauth/client.rb
soap4r-ruby1.9-2.0.0 sample/payload/basicauth/client.rb
soap4r-ruby1.9-1.0.0 sample/payload/basicauth/client.rb