method

obj2soap

ruby latest stable - Class: SOAP::Mapping::DateTimeFactory_

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

obj2soap(soap_class, obj, info, map)
public

No documentation available.

# 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