# File lib/soap/mapping/factory.rb, line 20 def obj2soap(soap_class, obj, info, map) raise NotImplementError.new # return soap_obj end
# File lib/soap/mapping/factory.rb, line 30 def setiv2obj(obj, node, map) return if node.nil? if obj.is_a?(Array) setiv2ary(obj, node, map) else setiv2struct(obj, node, map) end end
# File lib/soap/mapping/factory.rb, line 39 def setiv2soap(node, obj, map) if obj.class.class_variables.include?('@@schema_element') setdefinediv2soap(node, obj, map) else # should we sort instance_variables? how? obj.instance_variables.each do |var| name = var.sub(/^@/, '') elename = Mapping.name2elename(name) node.add(elename, Mapping._obj2soap(obj.instance_variable_get(var), map)) end end end
Generated with the Darkfish Rdoc Generator 2.