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

Version Path
soap5r-2.0.3 sample/showcase/soap/soapbox/wsdlDriver.rb
soap5r-2.0.2 sample/showcase/soap/soapbox/wsdlDriver.rb
soap5r-2.0.1 sample/showcase/soap/soapbox/wsdlDriver.rb
soap5r-2.0.0 sample/showcase/soap/soapbox/wsdlDriver.rb
soap5r-2.0.0.20120130130121 sample/showcase/soap/soapbox/wsdlDriver.rb