#!/usr/bin/ruby -w
require 'soap/wsdlDriver'
require 'pp'
wsdl = 'http://www.webservicex.net/stockquote.asmx?WSDL'
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver

# Log SOAP request and response
driver.wiredump_file_base = "soap-log.txt"

# Use Burp proxy for all requests
driver.httproxy = 'http://localhost:8080'

# Log SOAP request and response
response = driver.GetQuote(:symbol => 'MSFT');
pp response
