Sha256: 0cad719e0f9eafb7b4f38659e105bcd9ae5c2ce0eb3902e18125b3866e0a1daa
Contents?: true
Size: 571 Bytes
Versions: 7
Compression:
Stored size: 571 Bytes
Contents
#!/usr/bin/env ruby require 'AddDriver.rb' endpoint_url = ARGV.shift value = ARGV.shift if ((endpoint_url == nil) or (value == nil)) then puts "Usage: ${0} <service-url> <value>" exit -1 end obj = AddPortType.new(endpoint_url) # run ruby with -d to see SOAP wiredumps. obj.wiredump_dev = STDERR if $DEBUG begin request = Add.new(value) response = obj.add(request) puts "Result: #{response.sum}" rescue SOAP::FaultError => e puts "Fault caught! Reason: '#{e.detail.addFault.reason}' Severity: '#{e.detail.addFault.severity}'" end
Version data entries
7 entries across 7 versions & 2 rubygems