So I'm writing a Ruby client for a SOAP web service, and I've figured out how to call a simple method:
# WebServiceClient.rb
require 'soap/wsdlDriver'
wsdl_url = 'http://urlmadness?wsdl'
service = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver
result = service.simpleMethod(:sayHello => 'Hello')
p result.return
Now I need to write something that will call a web method that is expecting an attached file as a SOAP MIME Attachment (SwA). I've looked into Ruby's SOAP::Attachment
class but I can't seem to figure out how to use it, and I can't find any examples anywhere.
Does anybody know how to use it to add a MIME attachment to a method call?
Thanks,
Alex