Class: ActionWebService::Protocol::Soap::SoapTypedArrayFactory

Inherits:
SOAP::Mapping::Factory
  • Object
show all
Defined in:
lib/action_web_service/protocol/soap_protocol/marshaler.rb

Instance Method Summary collapse

Instance Method Details

#obj2soap(soap_class, obj, info, map) ⇒ Object



205
206
207
208
209
210
211
212
213
214
215
216
# File '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

#soap2obj(obj_class, node, info, map) ⇒ Object



218
219
220
# File 'lib/action_web_service/protocol/soap_protocol/marshaler.rb', line 218

def soap2obj(obj_class, node, info, map)
  return false
end