Given header is a SOAPHeaderItem or nil.
# File lib/soap/header/handler.rb, line 35 def on_inbound(header, mustunderstand = false) # do something. end
# File lib/soap/header/handler.rb, line 54 def on_inbound_headeritem(header, item) on_inbound(item.element, item.mustunderstand) end
Should return a SOAP/OM, a SOAPHeaderItem or nil.
# File lib/soap/header/handler.rb, line 30 def on_outbound nil end
# File lib/soap/header/handler.rb, line 39 def on_outbound_headeritem(header) arity = self.method(:on_outbound).arity item = (arity == 0) ? on_outbound : on_outbound(header) if item.nil? nil elsif item.is_a?(::SOAP::SOAPHeaderItem) item.elename = @elename item else item.elename = @elename ::SOAP::SOAPHeaderItem.new(item, @mustunderstand, @encodingstyle, @target_actor) end end
Generated with the Darkfish Rdoc Generator 2.