Sha256: 521565902628f9c6f08eff1765728bd307857566a8c2f2cb4b07fa02dff34add

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

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

7 entries across 7 versions & 2 rubygems

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