Class SOAP::SOAPHeader
In: lib/soap/element.rb
Parent: SOAPStruct

Methods

add   encode   length   new   size  

Included Modules

SOAPEnvelopeElement

Public Class methods

[Source]

     # File lib/soap/element.rb, line 182
182:   def initialize
183:     super(nil)
184:     @elename = EleHeaderName
185:     @encodingstyle = nil
186:   end

Public Instance methods

[Source]

     # File lib/soap/element.rb, line 197
197:   def add(name, value)
198:     mu = (value.extraattr[AttrMustUnderstandName] == '1')
199:     encstyle = value.extraattr[AttrEncodingStyleName]
200:     item = SOAPHeaderItem.new(value, mu, encstyle)
201:     super(name, item)
202:   end

[Source]

     # File lib/soap/element.rb, line 188
188:   def encode(generator, ns, attrs = {})
189:     name = ns.name(@elename)
190:     generator.encode_tag(name, attrs)
191:     @data.each do |data|
192:       yield(data)
193:     end
194:     generator.encode_tag_end(name, true)
195:   end

[Source]

     # File lib/soap/element.rb, line 204
204:   def length
205:     @data.length
206:   end
size()

Alias for length

[Validate]