Sha256: 93d8e706d719bb6834d2d240a640fbe0d776eb8fe26eccad79348c95873d62cc

Contents?: true

Size: 521 Bytes

Versions: 5

Compression:

Stored size: 521 Bytes

Contents

# encoding: ASCII-8BIT
require 'soap/rpc/driver'

server = ARGV.shift || 'http://localhost:7000/'

drv = SOAP::RPC::Driver.new(server, 'http://tempuri.org/base64Service')
drv.wiredump_dev = STDERR if $DEBUG

drv.add_method('echo', 'arg')
drv.add_method('echo_base64', 'arg')

binary = "\0\0\0"
text = "000"

drv.echo(binary)        # => binary is automatically converted to Base64

drv.echo(text)                              # => send as String
drv.echo_base64(SOAP::SOAPBase64.new(text)) # => send as Base64 explicitly

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
soap5r-2.0.3 sample/howto/base64/client.rb
soap5r-2.0.2 sample/howto/base64/client.rb
soap5r-2.0.1 sample/howto/base64/client.rb
soap5r-2.0.0 sample/howto/base64/client.rb
soap5r-2.0.0.20120130130121 sample/howto/base64/client.rb