Sha256: fb6b929895702b5b4465dcd1733528eddf7ab291d5b93bbbf510af5943f89a5b
Contents?: true
Size: 814 Bytes
Versions: 5
Compression:
Stored size: 814 Bytes
Contents
# encoding: ASCII-8BIT require 'soap/wsdlDriver' include SOAP wsdl = ARGV.shift || 'SoapBoxWebServiceWithRawXML.wsdl' driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver driver.wiredump_dev = STDOUT =begin userinfo = SOAPElement.new(XSD::QName.new('http://www.winfessor.com/SoapBoxWebService/SoapBoxWebService', 'RegisterUser')) userinfo.add(SOAPElement.new('username', 'NaHi')) userinfo.add(SOAPElement.new('passowrd', 'passwd')) userinfo.add(SOAPElement.new('hostname', 'www.example.com')) s = Struct.new(:username, :password, :hostname) userinfo = s.new('NaHi', 'nahi', 'jabber.example.com') s = Struct.new(:username, :password) userinfo = {:username => 'NaHi', :password => 'nahi'} driver.RegisterUser(nil, userinfo) =end header = { :SessionID => '12345' } driver.RegisterRemoveUser(header, nil)
Version data entries
5 entries across 5 versions & 1 rubygems