Class: SessionHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/stub/default.rb

Overview

urn:wsurn:ws.rsysurn:ws.rsys.comSessionHeader

sessionId - SOAP::SOAPString

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sessionId = nil) ⇒ SessionHeader

Returns a new instance of SessionHeader.



1112
1113
1114
# File 'lib/stub/default.rb', line 1112

def initialize(sessionId = nil)
  @sessionId = sessionId
end

Instance Attribute Details

#sessionIdObject

Returns the value of attribute sessionId.



1110
1111
1112
# File 'lib/stub/default.rb', line 1110

def sessionId
  @sessionId
end

Instance Method Details

#on_outbound_headeritem(test) ⇒ Object

CLS - Added this hackery



1117
1118
1119
1120
1121
# File 'lib/stub/default.rb', line 1117

def on_outbound_headeritem(test)
  sobj = SOAP::SOAPElement.new(XSD::QName.new("ns1", 'SessionHeader'))
  sobj.add(SOAP::SOAPElement.new(XSD::QName.new("ns1", "sessionId"), @sessionId))
  ::SOAP::SOAPHeaderItem.new(sobj, false)
end