Created
November 21, 2008 23:29
-
-
Save lawrencecurtis/27690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'soap/wsdlDriver' | |
class Login | |
attr_accessor :userName | |
attr_accessor :password | |
def initialize(userName = nil, password = nil) | |
@userName = userName | |
@password = password | |
end | |
end | |
wsdl = "https://blablabla/servicename.asmx?WSDL" | |
service = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver | |
service.wiredump_file_base = "soap-log.txt" | |
puts service.login(Login.new("foo", "bar")).inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment