method
obj2soap
v1.2.6 -
Show latest stable
- Class:
ActionWebService::Protocol::Soap::SoapTypedArrayFactory
obj2soap(soap_class, obj, info, map)public
No documentation available.
# File actionwebservice/lib/action_web_service/protocol/soap_protocol/marshaler.rb, line 205
def obj2soap(soap_class, obj, info, map)
unless obj.respond_to?(:arytype)
return nil
end
soap_obj = soap_class.new(SOAP::ValueArrayName, 1, obj.arytype)
mark_marshalled_obj(obj, soap_obj)
obj.each do |item|
child = SOAP::Mapping._obj2soap(item, map)
soap_obj.add(child)
end
soap_obj
end