class SOAP::Header::MappingHandler

Attributes

registry[RW]

Public Class Methods

new(elename, registry = nil) click to toggle source
Calls superclass method SOAP::Header::Handler::new
# File lib/soap/header/mappinghandler.rb, line 21
def initialize(elename, registry = nil)
  super(elename)
  @registry = registry
end

Public Instance Methods

on_inbound(header, mustunderstand) click to toggle source
# File lib/soap/header/mappinghandler.rb, line 40
def on_inbound(header, mustunderstand)
  obj = SOAP::Mapping.soap2obj(header, @registry)
  on_mapping_inbound(obj, mustunderstand)
end
on_mapping_inbound(obj, mustunderstand) click to toggle source

Given header is a mapped Object

# File lib/soap/header/mappinghandler.rb, line 32
def on_mapping_inbound(obj, mustunderstand)
end
on_mapping_outbound() click to toggle source

Should return an Object for mapping

# File lib/soap/header/mappinghandler.rb, line 27
def on_mapping_outbound
  nil
end
on_outbound() click to toggle source
# File lib/soap/header/mappinghandler.rb, line 35
def on_outbound
  obj = on_mapping_outbound
  obj ? SOAP::Mapping.obj2soap(obj, @registry, @elename) : nil
end