Sha256: 54c23be614196c3278457bfee157851447b0560877cccc56670bbdd0b4b29f89

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

# encoding: ASCII-8BIT
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

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/payload/basicauth/client.rb
soap5r-2.0.2 sample/payload/basicauth/client.rb
soap5r-2.0.1 sample/payload/basicauth/client.rb
soap5r-2.0.0 sample/payload/basicauth/client.rb
soap5r-2.0.0.20120130130121 sample/payload/basicauth/client.rb