1
# SOAP4R - SOAP Header handler item
2
# Copyright (C) 2003, 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
4
# This program is copyrighted free software by NAKAMURA, Hiroshi. You can
5
# redistribute it and/or modify it under the same terms of Ruby's license;
6
# either the dual license version in 2003, or any later version.
18
attr_reader :mustunderstand
19
attr_reader :encodingstyle
21
def initialize(elename)
23
@mustunderstand = false
27
# Should return a SOAP/OM, a SOAPHeaderItem or nil.
32
# Given header is a SOAPHeaderItem or nil.
33
def on_inbound(header, mustunderstand = false)
37
def on_outbound_headeritem
41
elsif item.is_a?(::SOAP::SOAPHeaderItem)
42
item.elename = @elename
45
item.elename = @elename
46
::SOAP::SOAPHeaderItem.new(item, @mustunderstand, @encodingstyle)
50
def on_inbound_headeritem(header)
51
on_inbound(header.element, header.mustunderstand)