method

obj2soap

Importance_0
v1_8_7_72 - Show latest stable - 0 notes - Class: SOAP::Mapping::DateTimeFactory_
obj2soap(soap_class, obj, info, map) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/soap/mapping/factory.rb, line 149
  def obj2soap(soap_class, obj, info, map)
    if !@allow_original_mapping and
        Time === obj and !obj.instance_variables.empty?
      return nil
    end
    soap_obj = nil
    begin
      soap_obj = soap_class.new(obj)
    rescue XSD::ValueSpaceError
      return nil
    end
    mark_marshalled_obj(obj, soap_obj)
    soap_obj
  end
Register or log in to add new notes.