Class | SOAP::SOAPHeaderItem |
In: |
lib/soap/element.rb
|
Parent: | XSD::NSDBase |
element | [RW] | |
encodingstyle | [RW] | |
mustunderstand | [RW] |
# File lib/soap/element.rb, line 155 155: def initialize(element, mustunderstand = true, encodingstyle = nil) 156: super() 157: @type = nil 158: @element = element 159: @mustunderstand = mustunderstand 160: @encodingstyle = encodingstyle 161: element.parent = self if element 162: end
# File lib/soap/element.rb, line 164 164: def encode(generator, ns, attrs = {}) 165: attrs.each do |key, value| 166: @element.extraattr[key] = value 167: end 168: @element.extraattr[ns.name(AttrMustUnderstandName)] = 169: (@mustunderstand ? '1' : '0') 170: if @encodingstyle 171: @element.extraattr[ns.name(AttrEncodingStyleName)] = @encodingstyle 172: end 173: @element.encodingstyle = @encodingstyle if !@element.encodingstyle 174: yield(@element) 175: end