Sha256: c31486bb949ef6d29a2ee850b782a30d5f02bfab91f49e432143647d10b9d618

Contents?: true

Size: 1.11 KB

Versions: 7

Compression:

Stored size: 1.11 KB

Contents

#!/usr/bin/env ruby

require 'soap/driver'

#Server = 'http://www.hippo2000.net/cgi-bin/soap5tq2.cgi'
Server = 'http://www.hippo2000.net/cgi-bin/soap5tq.cgi'
NS = 'urn:Soap5tq'

proxy = ARGV.shift || nil

def getWireDumpLogFile
  logFilename = File.basename( $0 ) + '.log'
  f = File.open( logFilename, 'w' )
  f << "File: #{ logFilename } - Wiredumps for SOAP4R client / #{ $serverName } server.\n"
  f << "Date: #{ Time.now }\n\n"
end


drv = SOAP::Driver.new( nil, 'hippo5tq', NS, Server, proxy )
drv.setWireDumpDev( getWireDumpLogFile )

drv.addMethod( 'Init', 'UsrName', 'Passwd' )
  # => [ sSession, sErr ]
drv.addMethod( 'End', 'sSsID' )
  # => void

drv.addMethod( 'GetQuizAll', 'sSsId' )
  # => [ sQuiz0, sOpt00, sOpt01, sOpt02, sOpt03, sOpt04,
  #      ...
  #      sQuiz9, sOpt90, sOpt91, sOpt92, sOpt93, sOpt94 ]
drv.addMethod( 'RepQuizAll', 'sSsID', 'iRes' )
  # => [ iResult, iPoint ]

drv.addMethod( 'GetQuiz', 'sSsID' )
  # => [ sQuiz, sOpt0, sOpt1, sOpt2, sOpt3, sOpt4 ]
drv.addMethod( 'ReqQuiz', 'sSsID', 'iRes' )
  # => [ iResult, iPoint ]

sessionId, errInfo =  drv.Init( 'SOAP4R', '' )

p drv.GetQuizAll( sessionId )

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
soap4r-spox-1.6.0 sample/showcase/soap/hippo5tq/hippo5tq.rb
soap4r-ruby1.9-2.0.5 sample/showcase/soap/hippo5tq/hippo5tq.rb
soap4r-ruby1.9-2.0.3 sample/showcase/soap/hippo5tq/hippo5tq.rb
soap4r-ruby1.9-2.0.2 sample/showcase/soap/hippo5tq/hippo5tq.rb
soap4r-ruby1.9-2.0.1 sample/showcase/soap/hippo5tq/hippo5tq.rb
soap4r-ruby1.9-2.0.0 sample/showcase/soap/hippo5tq/hippo5tq.rb
soap4r-ruby1.9-1.0.0 sample/showcase/soap/hippo5tq/hippo5tq.rb