How to get the soap stream from a client?

Hi all,

With soap4r, I send a soap request to a server, but I would like to see
my
soap message.

Is there a way to get this message ?

require ‘soap/rpc/driver’
stub = SOAP::RPC::Driver.new(“http://localhost:8080”,
http://localhost/Demo”)
stub.add_message(‘getTime’)

puts stub.getTime

thanks,

Stephane