Given header is a SOAPHeaderItem or nil.
# File soap/header/handler.rb, line 33
def on_inbound(header, mustunderstand = false)
# do something.
end
# File soap/header/handler.rb, line 50
def on_inbound_headeritem(header)
on_inbound(header.element, header.mustunderstand)
end
Should return a SOAP/OM, a SOAPHeaderItem or nil.
# File soap/header/handler.rb, line 28
def on_outbound
nil
end
# File soap/header/handler.rb, line 37
def on_outbound_headeritem
item = on_outbound
if item.nil?
nil
elsif item.is_a?(::SOAP::SOAPHeaderItem)
item.elename = @elename
item
else
item.elename = @elename
::SOAP::SOAPHeaderItem.new(item, @mustunderstand, @encodingstyle)
end
end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.